Tuesday, July 27, 2010

LDAP Modify - Changing your password


File contents: mod_attribute.ldif

dn: uid=mtan,ou=People,dc=mlbam,dc=com
changetype: modify
replace: userPassword
userPassword: {clear text password}

ldapmodify -x -h ldap01.mlbam.com -p 389 -D "uid=mtan,ou=People,dc=mlbam,dc=com" -f /Users/tan/mod_attribute.ldif -W
Enter LDAP Password:

Enter your current password.

Possible outcomes:

additional info: invalid password syntax: no numeric character
This indicates your password must contain a numeric character

additional info: invalid password syntax: dictionary word match
This indicates your new password contains a dictionary word, which is not allowed.

additional info: invalid password syntax: no special character
This indicates your new password must contain a special character.

SASL/EXTERNAL authentication started
ldap_sasl_interactive_bind_s: Unknown authentication method (-6)
additional info: SASL(-4): no mechanism available:
You should use the -x option for simple authentication.

No comments: