Installation guide

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.5.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.6. 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. T he Directory Manager password is stored in
the Directory Server configuration files and can be viewed (if lost) and modified by editing that file. To
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:
/usr/bin/pwdhash newpasswo rd
{SSHA}nbR/ZeVTwZLw6aJH6oE4obbDbL0OaeleUoT21w==
3. In the configuration directory, open the dse.ldif file. For example:
Chapter 6. General Usage Information
87