【问题标题】:LDAP: Filter users belonging to a group across multiple OU'sLDAP:过滤属于跨多个 OU 的组的用户
【发布时间】:2021-09-15 20:38:27
【问题描述】:

我在 AD 中有以下结构

DC=comp,DC=com
    OU=city1
       OU=group
       OU=users
         user1
         user2
    OU=city2
       OU=group
       OU=users
         user3
         user4

我正在尝试在单个查询中过滤和检索用户 1-4。我试过过滤器 (dn=OU=users,ou=*,DC=comp,DC=com) 但它返回为空。在这种情况下过滤的最佳方法是什么?

【问题讨论】:

标签: ldap ldap-query


【解决方案1】:

很遗憾,Microsoft Active Directory 不支持 extensible match filter 用于这种情况。

如果这些是唯一的用户,则在“DC=comp,DC=com”设置基数将返回用户。

【讨论】:

  • 感谢您提供链接。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-02-08
  • 1970-01-01
  • 2017-08-28
相关资源
最近更新 更多