Skip to content

Instantly share code, notes, and snippets.

@vpack
Last active August 29, 2015 14:15
Show Gist options
  • Save vpack/273e9ee77247ec7bfb1d to your computer and use it in GitHub Desktop.
Save vpack/273e9ee77247ec7bfb1d to your computer and use it in GitHub Desktop.
openLDAP commands for verifying LDAP connection
# 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