ldap change a users password

Changing a User's Password Using the RootDN Bind The ldappasswd tool also allows you to change another user's password if needed as the LDAP administrator. Technically, you can bind with any account that has write access to the account's password, but this access is usually limited to the rootDN (administrative) entry and the account itself.

To change another user's password, you need to bind to an entry with elevated privileges and then specify the entry you wish to change. Usually, you'll be binding to the rootDN (see the next section if you need to find out how to find this account).

The basic ldappasswd command will look very similar, the only difference being that you must specify the entry to change at the end of the command. You may use the -a or -A options if you have the old password available, but this is often not the case when changing the password for a user. If you do not have the old password, just leave it off.

For example, if the rootDN for your LDAP server is cn=admin,dc=example,dc=com, and the password you wish to change is for the uid=bob,ou=people,dc=example,dc=com entry, you can type this:

ldappasswd -H ldap://server_domain_or_IP -x -D "cn=admin,dc=example,dc=com" -W -S "uid=bob,ou=people,dc=example,dc=com"

You will be prompted for Bob's new password and then you will be prompted for the password needed to bind to the admin entry to make the change.

New HBase System

So in the New System it will look something like this

ldappasswd -H ldap://phm01.eq.com -x -D "cn=ldapadm,dc=eq,dc=com" -W -S "uid=priv1,ou=people,dc=eq,dc=com"

You then need to type 3 passwords

  • user new password
  • user new password
  • ldapadm password

The Users new password is up to you...

The ldapadm password is the same as the admin password i.e.