PingDirectory

Changing the administrative password

Change the administrative password in the terminal.

About this task

Root users are governed by the Root Password Policy and by default, their passwords never expire. However, if a root user’s password must be changed, use the ldappasswordmodify tool.

Steps

  1. Open a text editor and create a text file containing the new password.

    Example:

    $ echo password > <new-password>.txt

  2. To change the root user’s password, run ldappasswordmodify.

    $ bin/ldappasswordmodify --port 1389 --bindDN "cn=Directory Manager" \
      --bindPassword secret --newPasswordFile rootuser.txt
  3. Remove the text file.

    Example:

    $ rm <new-password>.txt