Last active
June 27, 2018 06:31
-
-
Save csghone/9b180ee9ffff3e0c00300eb69b681490 to your computer and use it in GitHub Desktop.
LDAP Utils examples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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