Skip to content

Instantly share code, notes, and snippets.

@getkub
Created December 11, 2014 09:24
Show Gist options
  • Save getkub/9d8bdfc9a49b685cdd53 to your computer and use it in GitHub Desktop.
Save getkub/9d8bdfc9a49b685cdd53 to your computer and use it in GitHub Desktop.
ldap search
ldapsearch -h yourserver.com -p 389 -b 'DC=dc,DC=com,DC=mycompany' -D "CN=userid,OU=org_unit,DC=dc,DC=com,DC=mycompany" -w 'xyz!' '(objectclass=*)' '*' | grep ^dn: | more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment