Example ldapsearch

ldapsearch -x -b "dc=gadgetwiz,dc=com" -D "cn=Manager,dc=gadgetwiz,dc=com" -h ldapserver.gadgetwiz.com -w password "cn=user@gadgetwiz.com" 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"