memberOf 中的 LDAP 搜索通配符 [英] LDAP Search Wildcards in memberOf

查看:42
本文介绍了memberOf 中的 LDAP 搜索通配符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个 LDAP,其中有许多遵循这种模式的组:

We have an LDAP with a number of groups that follow this pattern:

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 组的成员.我们希望找到所有管理员组的成员.

correctly returns members of the Acme-MyApp-ABC-Admin group. We'd like to find members of all of the Admin groups.

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

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

Is it possible to put a wildcard within a DN?

推荐答案

一般来说,不支持对 DN 的语法属性进行通配符搜索.

Generally, Wildcard searches on DN's syntax attributes are not supported.

一些 LDAP 服务器实现可能支持它们.您的问题被标记为 OpenLDAP,但搜索过滤器似乎更像是 AD 实现.

Some LDAP server implementation may support them. You question is tagged as OpenLDAP but the search filter appears to be more like an AD implementation.

我确实找到了关于使用 LDAP 过滤器从 AD 组获取 memberOf 的问题" 在 TechNet 上声明,.. 不允许使用通配符."(我假设他遇到了 NOT vs no)

I did find "Question about using an LDAP filter to get memberOf from an AD Group" on TechNet stating, ".. that wildcards are no allowed." (I am assuming he met NOT vs no)

-吉姆

这篇关于memberOf 中的 LDAP 搜索通配符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆