misteraidan
misteraidan

Reputation: 2003

LDAP filter by CN name, starts with

We have a naming convention for Active Directory groups and want to access them with an LDAP query and filter, e.g.

AppX User
AppX Author
AppX Publisher

I'm trying to write a filter but can't seem to get anything back.. looks a bit like this:

(CN=AppX *,OU=Security Groups,OU=Group Functions,DC=blah,DC=blah,DC=com)

Is it possible to query groups by name and wildcard like this?

Upvotes: 6

Views: 27803

Answers (1)

Kyrylo Kovalenko
Kyrylo Kovalenko

Reputation: 2171

Try using (&(cn=AppX*)(objectclass=Group))

Upvotes: 12

Related Questions