memberOf中的LDAP搜索通配符

问题描述 投票:12回答:1

我们有一个LDAP,其中包含许多遵循此模式的组:

Acme-MyApp-ABC-Admin
Acme-MyApp-ABC-Bottlewasher
Acme-MyApp-ABC-Cook
Acme-MyApp-DEF-Admin
Acme-MyApp-DEF-Bottlewasher
Acme-MyApp-DEF-Cook

等多次重复。

(&(objectClass=person)(memberOf=cn=Acme-MyApp-ABC-Admin,ou=Groups,dc=acme,dc=com))

正确返回Acme-MyApp-ABC-Admin组的成员。我们想找到所有管理员组的成员。

(&(objectClass=person)(memberOf=cn=*-Admin,ou=Groups,dc=acme,dc=com))

是否可以在DN中放置通配符?

ldap openldap ldap-query
1个回答
12
投票

通常,不支持对DN的语法属性进行通配符搜索。

某些LDAP服务器实现可能支持它们。您的问题被标记为OpenLDAP,但搜索过滤器看起来更像是AD实现。

我确实在TechNet上找到了“Question about using an LDAP filter to get memberOf from an AD Group”,声称“......不允许使用通配符。” (我假设他遇到了NOT vs no)

-Jim

© www.soinside.com 2019 - 2024. All rights reserved.