The CreatorCon Call for Content is officially open! Get started here.

LDAP memberof and wildcard filter

Rick Mann
Tera Expert

I'm working on an LDAP filter that uses the "memberof" attribute to only import users that are a member of a certain AD group.   I'm able to get a filter to work that specifically calls out a group name, for example:   (&(objectClass=person)(memberOf=CN=group_name_here,OU=Standard,DC=mydomain,DC=com))

This filter will retrieve the desired list of user records I want to import into ServiceNow.   However, I'm unable to use a wildcard (*) within the filter where I may have multiple AD groups that start with "group" and end with "here".   For example:   (&(objectClass=person)(memberOf=CN=group_*_here,OU=Standard,DC=mydomain,DC=com))

I've tried a few iterations of the syntax, but nothing seems to work.   Thanks for any assistance.

Rick

2 REPLIES 2

Inactive_Us1474
Giga Guru

Hi Rick,



Can you try this below filter :


(&(objectClass=person)(memberOf=CN=group%here,OU=Standard,DC=mydomain,DC=com))



Thanks and Hope it helps.


Akhil


Rick Mann
Tera Expert