We get this question quite often on IRC or mailling lists, from newbies who’ve installed OpenDJ (or OpenDS) for evaluation and forgot the Directory Manager’s password.
So here are the steps :
Make sure OpenDJ is stopped.
bin/stop-ds
Generate an encoded password for Directory Manager :
bin/encode-password -s SSHA512 -c AS3cur3PassW0rd Encoded Password: "{SSHA512}G/knE0xkyW2Af3+1MFy+yPYxchGgLuqog71R4njPJcs9t5NDAadqLxU7pxZjZkrDquQeb5aq7tum1ZFC3uE+r4Nmuil4S46A"
Copy the string within quotes (without the quotes), and edit the config/config.ldif file.
Go down to the following entry
dn: cn=Directory Manager,cn=Root DNs,cn=config
Replace the value of userPassword with the newly generated one.
dn: cn=Directory Manager,cn=Root DNs,cn=config objectClass: person objectClass: organizationalPerson objectClass: inetOrgPerson objectClass: top objectClass: ds-cfg-root-dn-user userpassword: {SSHA512}G/knE0xkyW2Af3+1MFy+yPYxchGgLuqog71R4njPJcs9t5NDAadqLxU7pxZjZkrDquQeb5aq7tum1ZFC3uE+r4Nmuil4S46A ...
You can now restart the server and administer it.
When I reboot the server I’m still not able to log into dcconfig with the Directory Manager even after changing the hashed password. What else can I look into to get logged in so I can remove the default admin and create a new one?
Hi,
Most likely, the server has not been restarted after a reboot of the server.
By default OpenDJ doesn’t install hooks to restart at reboot. Depending on your OS, you might need to create and install the RC script or configure OpenDJ to use Windows Services.
Please help me how to integrate opendj with openam after openam has been installed.
How about you help yourself by reading the OpenAM documentation ? Otherwise, ForgeRock is providing support for these products.