Last active
August 29, 2015 14:15
-
-
Save vpack/273e9ee77247ec7bfb1d to your computer and use it in GitHub Desktop.
openLDAP commands for verifying LDAP connection
This file contains 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
# sudo su | |
yum install openldap-clients | |
echo "TLS_REQCERT never" >> /etc/openldap/ldap.conf | |
ldapsearch -LLL -H ldaps://naas1.myco.com:636 -b 'dc=myco,dc=com' -D 'CN=chefAdmin,CN=Service,CN=Non-People,DC=myco,DC=com' -W -d 3 | |
ldapsearch -LLL -H ldaps://naas1.myco.com:636 -b 'dc=myco,dc=com' -D 'CN=chefAdmin,CN=Service,CN=Non-People,DC=myco,DC=com' -W '(sAMAccountName=MY USER ID)' | grep -i samac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment