I'm trying to learn openldap. I have a user that I want to change their password on, but I'm getting an error:
[testuser@gomer ~]$ ldappasswd -WS -D "uid=testuser,ou=People,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us" New password: Re-enter new password: Enter LDAP Password: SASL/DIGEST-MD5 authentication started ldap_sasl_interactive_bind_s: Invalid credentials (49) additional info: SASL(-13): user not found: no secret in database
But the user does exist:
[root@gomer ~]# ldapsearch -D 'cn=Manager,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us' -b "uid=testuser,ou=People,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us" -w xxxxxx -x # extended LDIF # # LDAPv3 # base <uid=testuser,ou=People,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us> with scope subtree # filter: (objectclass=*) # requesting: ALL #
# testuser, People, gomer.mdah.state.ms.us dn: uid=testuser,ou=People,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us uid: testuser cn: test user telephoneNumber: 5766888 roomNumber: IS homePhone: 3738042 givenName: test sn: user mail: testuser@dc=mdah,dc=state,dc=ms,dc=us objectClass: person objectClass: organizationalPerson objectClass: inetOrgPerson objectClass: posixAccount objectClass: top objectClass: shadowAccount shadowLastChange: 13705 shadowMax: 99999 shadowWarning: 7 loginShell: /bin/bash uidNumber: 501 gidNumber: 101 homeDirectory: /home/testuser gecos: test user,IS,5766888,3738042 userPassword:: xxxxxxxxxxxxxx
# search result search: 2 result: 0 Success
# numResponses: 2 # numEntries: 1
--On October 1, 2007 11:50:51 AM -0500 Adam Williams awilliam@mdah.state.ms.us wrote:
I'm trying to learn openldap. I have a user that I want to change their password on, but I'm getting an error:
[testuser@gomer ~]$ ldappasswd -WS -D "uid=testuser,ou=People,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us"
[root@gomer ~]# ldapsearch -D 'cn=Manager,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us' -b "uid=testuser,ou=People,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us" -w xxxxxx -x
Notice the missing -x option from ldappasswd that you include with ldapsearch.
--Quanah
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
Quanah Gibson-Mount wrote:
--On October 1, 2007 11:50:51 AM -0500 Adam Williams awilliam@mdah.state.ms.us wrote:
Notice the missing -x option from ldappasswd that you include with ldapsearch.
thanks, worked like a charm with -x
openldap-software@openldap.org