Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ldap query for group members

Tags:

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.

My "AD tree": mydomain.local/Mybusiness/Distribution Groups/ here are my groups

I tried with somethin' like this:

(objectCategory=user)
(memberOf=CN=Distribution Groups,OU=Mybusiness,DC=mydomain.local,DC=com)

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.

like image 575
Holian Avatar asked May 13 '10 10:05

Holian


1 Answers

The query should be:

(&(objectCategory=user)(memberOf=CN=Distribution Groups,OU=Mybusiness,DC=mydomain.local,DC=com))

You missed & and ()

like image 176
53iScott Avatar answered Oct 17 '22 05:10

53iScott