Skip to content

Instantly share code, notes, and snippets.

@csghone
Last active June 27, 2018 06:31
Show Gist options
  • Select an option

  • Save csghone/9b180ee9ffff3e0c00300eb69b681490 to your computer and use it in GitHub Desktop.

Select an option

Save csghone/9b180ee9ffff3e0c00300eb69b681490 to your computer and use it in GitHub Desktop.
LDAP Utils examples
# No auth, no SSL search
ldapsearch -vvv -x -H ldap://ldap.mydomain.com:389 -b "cn=accounts,dc=mydomain,dc=com" uid=csghone
# AUTH + SSL search
LDAPTLS_CACERT=ldap.crt ldapsearch -vvv -Z -H ldaps://ldap.mydomain.com:636 \
-b "cn=accounts,dc=mydomain,dc=com" \
-D "uid=dummy_user_for_bind,cn=users,cn=accounts,dc=mydomain,dc=com" \
-w <password_for_dummy_user_for_bind> \
uid=csghone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment