ldap 查询组成员 [英] ldap query for group members
本文介绍了ldap 查询组成员的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试进行 LDAP 查询,以获取我所有组/成员的列表.我不知道我该怎么做.我所有的尝试都不成功.
I'm trying to make an LDAP query, to get a list from all my groups/members. I can't figure out how can i do this. All my tries were unsuccesfull.
我的AD 树":mydomain.local/Mybusiness/Distribution Groups/这是我的组
My "AD tree": mydomain.local/Mybusiness/Distribution Groups/ here are my groups
我尝试过这样的事情:
(objectCategory=user)
(memberOf=CN=Distribution Groups,OU=Mybusiness,DC=mydomain.local,DC=com)
如果有人可以帮助我编写一个 ldap 查询,我将不胜感激,它会列出我的群组和该群组的成员.
I appreciate if somebody could help me to write an ldap query, which gives a list with my groups and the members of this groups.
推荐答案
查询应该是:
(&(objectCategory=user)(memberOf=CN=Distribution Groups,OU=Mybusiness,DC=mydomain.local,DC=com))
你错过了 & 和 ()
这篇关于ldap 查询组成员的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文