How to change eDirectory or Universal Password through LDAP

  • 7003319
  • 20-May-2009
  • 26-Apr-2012


Novell eDirectory 8.8 for All Platforms


The user for who the password will be changed must have a Universal Password Policy assigned.

Create a file called changepwd.ldif

The contents from this file should look like this:

dn: cn=<myuser>,ou=<myou>,o=<myo>
changetype: modify
replace: userPassword
userPassword: <newPassWord>

in this example the password for cn=user0,ou=support,o=nts will be changed to Support

the changepwd.ldif will look like this:

dn: cn=user0,ou=support,o=nts
changetype: modify
replace: userPassword
userPassword: Support

and is stored in /tmp

in a Terminal do:

ldapmodify -x -h<ldaphost> -D <Distinguished Name> -W -f <path to file>

Example: ldapmodify -x -h192.168.200.12 -D cn=admin,o=nts -W -f /tmp/changepwd.ldif

Result will be:

Enter LDAP Password: (Password for cn=admin,o=nts)
modifying entry "cn=user0,ou=support,o=nts"