openldap Notes

Example ldapsearch

ldapsearch -x -b “dc=gadgetwiz,dc=com” -D “cn=Manager,dc=gadgetwiz,dc=com” -h -w password “” cn userPassword

x = simple authentication (not ssl)

b = base DN to start search

D = BIND DN (Username to login as)

h = hostname

w = password for BIND DN

quoted entry = search item

cn userPassword = return entry userPassword from ldap

Set Password for LDAP user

ldappasswd -xv -D “cn=Manager,dc=godaddy,dc=com” -w main_password -s user_password “cn=user,dc=gadgetwiz,dc=com”