sorin
sorin

Reputation: 170320

How do I make a LDAP search on OU on Microsoft Active Directory?

I tried to return LDAP search that should return me all entries that do have OU=groups on an active directory by I do not get the expected results (usually I get nothing).

Filter: (ou:dn:=groups)

I know that searching on DN is not possible by normal means, still what is the correct way of getting this information in a filer, one that would work with Active Directory.

Reference:

Upvotes: 1

Views: 7816

Answers (1)

JPBlanc
JPBlanc

Reputation: 72610

I don't think that you can do that in one search. You can first look for all organizational units of the name OU=groups, and then make a search for each OU.

It exists ExtensibleMatch that allow what you want to do, but it's not supported in Active-Directory.

Here is the reference form Microsft supported Search Filter Syntax

Upvotes: 4

Related Questions