Directory administrators are often asked to create, reset, or remove passwords for other users. The ldappasswordmodify utility enables you to change or reset a user’s password.
The next code assumes that the user remembers his/her existing password and the new password is passed to the server.
ldappasswordmodify –hostname localhost –port 389 –bindDN “cn=Directory Manager” –bindPassword Password1dm –authzID u:pwmuser –currentPassword pnx50okb –newPassword Password1dm
After executing the server will return
The LDAP password modify operation was successful