我有一种情况,Active Directory组的前缀是唯一的代码。例如
- 12345用户
- 12345管理员
- 67890用户
- 67890管理员
我目前正在使用LDAP获取所有组,但我想将其限制为仅限前缀为id的组。
有效地让小组从12345开始。
如何使用LDAP实现这一点?
使用LDAP的过滤器类似于:
&(ObjectClass=Group)(cn=12345*))
将检索以12345开头的组。-jim