From dd708cceda99e4f7e26e35f3794f72bb5b7ff7f8 Mon Sep 17 00:00:00 2001 From: Mark Craig <mark.craig@forgerock.com> Date: Mon, 12 Sep 2011 07:06:58 +0000 Subject: [PATCH] Described how to change Directory Manager's password (with a tip suggesting what to do if you've forgotten Directory Manager's password) --- opendj3/src/main/docbkx/admin-guide/chap-ldap-operations.xml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 44 insertions(+), 0 deletions(-) diff --git a/opendj3/src/main/docbkx/admin-guide/chap-ldap-operations.xml b/opendj3/src/main/docbkx/admin-guide/chap-ldap-operations.xml index cd52735..9df6593 100644 --- a/opendj3/src/main/docbkx/admin-guide/chap-ldap-operations.xml +++ b/opendj3/src/main/docbkx/admin-guide/chap-ldap-operations.xml @@ -471,6 +471,50 @@ set-password-is-reset -b uid=scarter,ou=people,dc=example,dc=com -O true Password Is Reset: true</screen> </example> + + <example> + <title>Change Own Password</title> + + <para>You can use the <command>ldappasswordmodify</command> command to + change your password, as long as you know your current password.</para> + + <screen>$ ldappasswordmodify -p 1389 -a "dn:uid=bjensen,ou=people,dc=example,dc=com" + --currentPassword hifalutin --newPassword secret12 +The LDAP password modify operation was successful</screen> + + <para>The same operation works for <literal>cn=Directory + Manager</literal>.</para> + + <screen>$ ldappasswordmodify -p 1389 -a "dn:cn=Directory Manager" + --currentPassword password --newPassword secret12 +The LDAP password modify operation was successful</screen> + </example> + + <tip xml:id="fix-forgotten-directory-manager-pwd"> + <para>If you forget the password for <literal>cn=Directory Manager</literal>, + then one remedy uses the following steps.</para> + <orderedlist> + <listitem> + <para>Generate an encoded password value using the + <command>encode-password</command> command.</para> + <para>By default, the password for Directory Manager uses the SSHA512 + password storage scheme.</para> + </listitem> + <listitem> + <para>Stop OpenDJ.</para> + </listitem> + <listitem> + <para>Edit <filename>config/config.ldif</filename>, replacing the + <literal>userPassword</literal> value on the entry for + <literal>cn=Directory Manager,cn=Root DNs,cn=config</literal> with + the encoded password, taking care not to leave any whitespace at the + end of the line.</para> + </listitem> + <listitem> + <para>Start OpenDJ.</para> + </listitem> + </orderedlist> + </tip> </section> <section> -- Gitblit v1.10.0