Skip to content

Instantly share code, notes, and snippets.

@hayderimran7
Created May 22, 2018 19:58
Show Gist options
  • Save hayderimran7/36f7c11f01e89d9a5ecd4c1558679fb8 to your computer and use it in GitHub Desktop.
Save hayderimran7/36f7c11f01e89d9a5ecd4c1558679fb8 to your computer and use it in GitHub Desktop.

To test ldap, use ldapsearch util as:

ldapsearch -b "dc=example,dc=com" -H ldap://whatever.com -D "cn=System,ou=people,ou=hq,dc=example,dc=com" -w <PASSWORD> "(objectclass=*)"

this will list all users. To get specific user:

ldapsearch -b "dc=example,dc=com" -H ldap://whatever.com -D "cn=System,ou=people,ou=hq,dc=example,dc=com" -w <PASSWORD>  "(uid=HAHAHHA)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment