Lost password of cn=Directory Manager ?

How to reset password of cn=Directory Manager

SUN Directory Server 5.2

Tkx

[94 byte] By [czja] at [2007-11-27 11:09:51]
# 1

Stop the server, edit the configuration file, restart the server.

Ludovic.

ludovicpa at 2007-7-29 13:38:01 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2

Sorry, which file is configration file ?

czja at 2007-7-29 13:38:01 > top of Java-index,Web & Directory Servers,Directory Servers...
# 3

1. stop slapd

2. edit <instance_root>/config/dse.ldif

modify:

nsslapd-rootpw: {SSHA}xzhCFobgeX3S22tA23tUEReV9E7fT20qAlhsTg==

to something like:

nsslapd-rootpw: topsecret

3. start slapd

4. Set new password:

ldapmodify -D 'cn=directory manager' -w topsecret

dn: cn=config

replace:nsslapd-rootpw

nsslapd-rootpw: some_clever_password

^D

The new password will be hashed.

solaris1a at 2007-7-29 13:38:01 > top of Java-index,Web & Directory Servers,Directory Servers...