1.Stop the Directory Server.

If the Directory Server is not stopped when the configuration files are edited, the changes are not applied.

#/opt/dirsrv/slapd-instance/stop-slapd

2.Generate a new, hashed password using pwdhash in the /opt/dirsrv/bin directory. For example:

#/opt/dirsrv/bin/pwdhash newpassword {SSHA}nbR/ZeVTwZLw6aJH6oE4obbDbL0OaeleUoT21w==

3.In the configuration directory, open the dse.ldif file with the text editor of your choice, for example:

#cd /etc/opt/dirsrv/slapd-instance#vi dse.ldif4.Locate the nsslapd-rootpwparameter.nsslapd-rootpw: {SSHA}x03lZLMyOPaGH5VB8fcys1IV+TVNbBIOwZEYoQ==

Delete the old password, and enter in the new hashed password, for example: nsslapd-rootpw:{SSHA}nbR/ZeVTwZLw6aJH6oE4obbDbL0OaeleUoT21w==

5.Save the change.6.Start the Directory Server. For example:#/opt/dirsrv/slapd-instance/start-slapd

7.When the Directory Server restarts, log into the Console again as Directory Manager, and verify that the password works.

5.7Troubleshooting

This section describes common problems that can occur during the setup process and the workarounds or solutions you can apply to them. In general, these relate to network or naming problems. and workarounds.

5.7.1 Problem: Clients cannot locate the server

Solution. First, modify the host name. If that does not work, use the fully-qualified domain name, such as www.domain.com, and make sure the server is listed in the DNS. If that does not work, check the IP address.

If the NIS domain is not the same as your DNS domain, check your fully-qualified host and domain name.

5.7.2 Problem: The port is in use

When setting up a Directory Server instance, you receive an error that the port is in use. This is very common when upgrading or migrating an existing server.

Solution This error means that you did not shut down the existing server before beginning the upgrade or migration. Shut down the existing server, then restart the upgrade process.

If this occurs during a setup process, it may mean another server is already using this port. Verify that the port you selected is not in use by another server.

5.7.3 Problem: Forgotten directory manager DN and password

Solution By default, the Directory Manager DN is cn=Directory Manager. If you forget the Directory Manager DN, you can determine it by checking the nsslapd-rootdn attribute in the dse.ldif file, in the /etc/opt/dirsrv/slapd-instance_namedirectory.

5.7 Troubleshooting

45