[Novalug] LDAP password change HOW?
Megan Larko
larkoc at iges.org
Wed Jul 9 11:32:04 EDT 2008
Hi,
I have inherited an LDAP passwd server.
I can successfully query it so I believe the LDAP Admin password I have
been given is correct.
When I attempt to change the very random user password to something more
memorable for the user I get unable to bind using the same LDAP admin
password that I used to initially create the account and that I am able
to use to search the database.
What is the invocation (-x -A -S, etc..) required to change a password
on an LDAP v3 system in CentOS 5 linux?
Thanks!
megan
----------------------------------------------------------------------
My LDAP password change command (It fails.):
[larkoc at crew01 scripts]$ ldappasswd -H ldap://ldap.crew.local -x -W -A
-S -D "cn=bigdog,o=crew,dc=iges,dc=org" uid=5288
Old password:
Re-enter old password:
New password:
Re-enter new password:
Enter LDAP Password:
ldap_bind: Invalid credentials (49)
------------------ ----------------- ------------------
LDAP search example (It works.):
[larkoc at crew01 scripts]$ ldapsearch -W -x -D "cn=bigdog,o=crew" -b
"o=crew" -H ldap://ldap.crew.local uid=larkoc
Enter LDAP Password:
# extended LDIF
#
# LDAPv3
# base <o=crew> with scope subtree
# filter: uid=larkoc
# requesting: ALL
#
# larkoc, People, crew
dn: uid=larkoc,ou=People,o=crew
givenName: Megan
sn: Larko
loginShell: /bin/bash
uidNumber: XXX
mail: larkoc at iges.....
shadowMax: XXXXXX
uid: larkoc
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: top
objectClass: shadowAccount
gecos: Megan Larko
shadowLastChange: XXXXXXX
cn: Megan Larko
homeDirectory: /home/larkoc
shadowWarning: 7
gidNumber: 338
userPassword:: e2NyeXB0fSQGVsWG9iUjlOdlVJdHVRHF5aC8=
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
More information about the Novalug
mailing list