Chapter 19. Searching in the Active Directory

In the Active Directory, just like in other LDAP-based directory services, entries that adhere to certain criteria can be searched in several containers simultaneously using the LDAP query syntax.

LDAP Query Syntax

For LDAP queries, there exists a special syntax according to [RFC1960] and [RFC2254]:

To execute an LDAP query, you need four parameters:

  • Path. An LDAP path, including LDAP://. The path can be indicated in Little Endian form as well as in Big Endian form.

    For example, LDAP://XFilesServer1/dc=FBI,dc=net

  • Filter. A condition in Inverted Polish notation ...

Get Essential PowerShell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.