LDAP query example

Using your LDAP Query tool, create an LDAP query that only returns user members (e.g. no nested groups).

Base DN

ou=freshmen,dc=yourdomain,dc=com

Query examples

  • (cn=*) all
  • (&(cn=*)(!(cn=andy))) all, except andy
  • (&(cn=*)(!(memberOf=ou=XYZ,dc=yourdomain,dc=com))) all, except from XYZ
  • (sAMAccountName=youruser) only 1 specific logon name

Read more

Related articles

Did this answer your question?