Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的 LDAP 组TestGroup具有A. 它包含来自域A和B的成员C。
TestGroup
A
B
C
当我查询 的所有成员时TestGroup,它只返回域中的成员A- 组的域。
TestGroup无论域如何,如何查询 的所有成员?
您当前的过滤器正在寻找user直接属于该组的所有对象。您需要获取组对象,并枚举member属性。这将为您提供每个成员的专有名称。如果您需要访问成员的对象,那么您将不得不使用类似 (distinguishedName=) 的东西来搜索它。
user
member
这并不容易。您必须决定是否要递归获取成员。我很确定来自其他域的用户由外部安全主体容器中的虚拟对象表示。