Appendix A. Starting and stopping the LDAP servers

Table of Contents

Checking the servers
The LDAP server
The administrative server (Solaris)
The administrative console (Solaris)
The directory administrator for OpenLDAP
Stopping the servers
Careful!
General
Using iPlanet/SunONE:

Abstract

This document gives an overview of procedures for starting and stopping the LDAP server and administrative console.

[Note]A note on privileges

Starting and stopping the servers is usually done at system startup and system shutdown. If it needs to be done at any other time, you will probably need root access on your UNIX system.

Checking the servers

The LDAP server

Issue the following command to check whether the LDAP server is currently running on your UNIX system:

ps -ef | grep slapd

It should show a line like the following:

ldap    1010   1  0 Jun17 ?      00:00:20 /usr/sbin/slapd -u ldap

If the server is not running, start it running the command

/usr/sbin/directoryserver start

Alternatively, start the directory server from the installation directory /<your_ldap_dir>/slapd-<your_host>/ using the command

./start-slapd

A commonly used installation directory is /usr/iplanet/ds5/ (on Solaris machines).

Additionally, on various UNIX systems the directory server can be started using the init scripts, like:

/etc/init.d/directory start

or, on a Linux system:

/etc/rc.d/init.d/ldap start

The administrative server (Solaris)

For checking on the administrative server, use the command

ps -ef | grep admin-serv

If the server is not running, start it running the command

/usr/sbin/directoryserver start-admin

The administrative server can also be started from the /<your_ldap_dir>/ directory:

./start-admin

The administrative console (Solaris)

If these two servers are running, you can start the administrative console issuing the command

/usr/sbin/directoryserver startconsole

Alternatively, start the console from the /<your_ldap_dir>/ directory with the command

./startconsole

This starts up the graphical user interface to manage the LDAP server and administrative server.

You will need a login, granting you administrative rights, and the accompanying password.

The directory administrator for OpenLDAP

Started up with the directory_administrator tool that comes with the “diradmin” package.