PingDirectory

Changing the administrator password

About this task

Root users are governed by the root password policy and by default, their passwords never expire. To change a root user password, use the ldappasswordmodify tool.

Steps

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

    Example:

    For this example, name the file rootuser.txt.

    $ echo password > rootuser.txt
  2. To change the root user’s password, run ldappasswordmodify.

    Example:

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

    Example:

    $ rm rootuser.txt