具有 MemberOf 属性的 LDAP DirectorySearcher,适用于属于 ad_group1 或 ad_group2(任何组或两个组)成员的用户
当前用于检查用户是否是 ad_group1
成员的搜索过滤器
&(memberOf=CN=ad_group1,OU=my_ou,DC=abc,DC=com)
需要配置搜索过滤器以检查用户是否是 ad_group1
或 ad_group2
的成员> 或两个组。
目前,搜索过滤器对于 ad_group1
组的成员正常工作。
如何扩展搜索过滤器以包含其他组的条件?
Current search filter for checking if the user is a member of ad_group1
&(memberOf=CN=ad_group1,OU=my_ou,DC=abc,DC=com)
Need to configure the search filter to check if the user is member of ad_group1
or ad_group2
or both the groups.
Currently the search filter is working properly for the members of group ad_group1
.
How to expand the search filter to include the condition for the other group?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试如下操作:
|
运算符是 LDAP 过滤器中的逻辑OR
。有关更多示例和说明,请参阅此处的本文 LDAP 过滤器语法。
Try something like this:
The
|
operator is the logicalOR
in LDAP filters.See this article here for more examples and explanations of the LDAP filter syntax.