LDAP memberof and wildcard filter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2016 07:16 AM
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
- Labels:
-
Integrations
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2016 07:34 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2016 07:45 AM
It looks like the use of wildcards may not be an option.