| | |
| | | <step> |
| | | <para>Generate the encoded version of the new password using the OpenDJ |
| | | <command>encode-password</command> command.</para> |
| | | <screen>$ cd /path/to/OpenDJ/bin/ |
| | | <screen>$ cd /path/to/opendj/bin/ |
| | | $ ./encode-password --storageScheme SSHA512 --clearPassword password |
| | | Encoded Password: "{SSHA512}yWqHnYV4a5llPvE7WHLe5jzK27oZQWLIlVcs9gySu4TyZJMg |
| | | NQNRtnR/Xx2xces1wu1dVLI9jVVtl1W4BVsmOKjyjr0rWrHt"</screen> |
| | |
| | | <step> |
| | | <para>Find Directory Manager's entry, which has DN <literal>cn=Directory |
| | | Manager,cn=Root DNs,cn=config</literal>, in |
| | | <filename>/path/to/OpenDJ/config/config.ldif</filename>, and carefully |
| | | <filename>/path/to/opendj/config/config.ldif</filename>, and carefully |
| | | replace the <literal>userpassword</literal> attribute value with the |
| | | encoded version of the new password, taking care not to leave any |
| | | whitespace at the end of the line.</para> |
| | |
| | | <step> |
| | | <para>Use the <command>ldappasswordmodify</command> command to reset the |
| | | global administrator's password</para> |
| | | <screen>$ cd /path/to/OpenDJ/bin/ |
| | | <screen>$ cd /path/to/opendj/bin/ |
| | | $ ./ldappasswordmodify |
| | | --useStartTLS |
| | | --port 1389 |
| | |
| | | --no-prompt</screen> |
| | | |
| | | <para>Alternatively, stop OpenDJ, edit the corresponding ACI carefully in |
| | | <filename>/path/to/OpenDJ/config/config.ldif</filename>, and restart OpenDJ. |
| | | <filename>/path/to/opendj/config/config.ldif</filename>, and restart OpenDJ. |
| | | <footnote><para>Unlike the <command>dsconfig</command> command, the |
| | | <filename>config.ldif</filename> file is not a public interface, so this |
| | | alternative should not be used in production.</para></footnote></para> |