Environment
Novell eDirectory 8.8 for All Platforms
Resolution
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"
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"