A quick and dirty HowTo manually configure Directory Server

This entry didn’t get migrated earlier. So, here is a re-post of the original entry.

A quick and dirty HowTo manually configure Directory Server

Here are a few quick manual steps that I figured out when I was trying to setup a Directory Server with minimal configuration on Solaris SPARC. These manual steps were done after a “configure later” option in Java Enterprise System 2005Q1. Please note that you might not need to do these manual steps if you choose to configure during installation.

Disclaimer: The instructions are provided AS-IS and use at your own risk. By following these instructions, you agree not to hold me responsible for any damages you might do as a result of following these instructions. It worked in my environment and therefore provided as a reference. The instructions are based on a beta version of the software and may be outdated when the final version releases. These instructions are not endorse by anyone.

Here are the basic steps:
1. Since I prefer to use the default configuration whenever possible, I made sure /var/mps/serverroot directory exists. If not create it.
2. Configure directory server instance
directoryserver -u 5.2 configure
-u specifies what version of Directory Server format to use.
3. I used the Typical option, kept the default administrator names, provide the correct domain name and supply the passwords when asked. At end of the configuration, you should see the status message showing slapd up and running. You might want to note down the configuration information and keep in a safe place.
4. Configure administration server instance
mpsadmserver configure
Follow the wizard and enter all the information it asks. Note down configuration and keep in a safe place.
5. Check out the default configuration Run the following command to bring the rich client GUI:
/usr/sbin/directoryserver startconsole
In the login pop up window, enter the User ID and password you configured earlier. For the Administration URL, make sure you enter the correct value. The Administration URL should look similar to myhost.mydomain.com:admin_port You should have the host name and domain information. You should see which port was used when Administration Server was configured in step 4. Once you entered the correct information you should see the console load correctly.

Here are misc other commands that you might want to use
/usr/sbin/directoryserver -useversion 5.2 stop-admin
/usr/sbin/directoryserver -useversion 5.2 start-admin
/usr/sbin/directoryserver -useversion 5.2 stop
/usr/sbin/directoryserver -useversion 5.2 start

Another way to do the same things are running the specific scripts (start-admin, stopadmin, start-slapd, stop-slapd, and startconsole) in the directory where you configured your instance of Directory Server and Administration Server for your Directory Server. For troubleshooting, see access and errors logs within the logs directory under the instance directory. (i.e. /var/mps/serverroot/slapd-my_host/logs)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s