Re: LDAP Query for memeber of one group

Tech-Archive recommends: Fix windows errors by optimizing your registry



Victor wrote:

I'm trying to set a saved query that will return the members of on
group.
So I've created the follwing query to get all the users which are
member of the *group* Internet from the *domain* mydomain.local in the
*OU* Bucharest

-(&(&(objectCategory=person)(|(objectClass=contact)(objectClass=user))(memberOf=cn=Internet,ou=Bucharest,dc=mydomain,dc=local)))-

But I get nothing.
Some help...


It looks like you want users and contacts that are direct member of the
group. I would try:

(&(objectCategory=person)(memberOf=cn=Internet,ou=Bucharest,dc=mydomain,dc=local))

The clause (objectCategory=person) will return user and contact objects.

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--


.