Installation guide
6.4.1. Starting and Stopping Directory Server
The most common way to start and stop the Directory Server service is using system tools on Red Hat
Enterprise Linux. For example, Linux uses the service tool:
service dirsrv {start|stop|restart} instance
Passing the instance name stops or starts only that instance; not giving any name starts or stops all
instances.
NOTE
The service name for the Directory Server service on Red Hat Enterprise Linux is dirsrv.
The start/stop scripts are in the /usr/sbin directory and are run similar to the service start/stop
command:
/usr/sbin/{start|stop|restart}-dirsrv instance
If the instance name is not given, then the all instances are started or stopped.
Alternatively, each instance has its own start and stop scripts that apply only to that instance.
/etc/dirsrv/slapd-instance_name/{start|stop|restart}-slapd
6.4.2. Starting and Stopping Admin Server
There are two ways to start, stop, or restart the Admin Server:
There are scripts in the /usr/sbin directory.
/usr/sbin/{start|stop|restart}-ds-admin
The Admin Server service can also be stopped and started using system tools on Red Hat
Enterprise Linux. For example:
service dirsrv-admin {start|stop|restart}
6.5. Resetting the Directory Manager Password
Passwords are stored in the Directory Server databases and can be modified with tools like
ldapmodify and through the Directory Server Console. The Directory Manager password is stored in
the Directory Server configuration files and can be viewed (if lost) and modified by editing that file. T o
check or reset the Directory Manager password:
1. Stop the Directory Server. If the Directory Server is not stopped when the configuration files are
edited, the changes are not applied.
service dirsrv stop
2. Generate a new, hashed password using pwdhash. On Linux, the tool is in the /usr/bin
directory. For example:
Chapter 6. General Usage Information
85