Tuesday, July 12, 2016

ldap search

This is a useful query to see what the ldap has from the commandline

 ldapsearch -h HOSTIP -D "cn=DAEMONUSER,ou=Process Accounts,dc=blah,dc=ntds" -w DAEMONPASS -b "ou=People,OU=blah,dc=blah,dc=ntds" "(|(memberOf=cn=ntds.blah.managed.blah.blah.blah,ou=Groups,ou=blah,dc=blah,dc=ntds)(memberOf=cn=ntds.blah.blah.blah.lab_access,ou=Groups,ou=blah,dc=blah,dc=ntds))" \* \+