Hi,
please can you tell me, how I can obtain a user that belongs to the specified group It is a domain user and a domain group. I already connect to the Activ Directory via LDAP. When I found a user he has property called MemberOf that contain a list of groups the user belongs to it. But only some user has filled up this property. Thanks

Member of Group
Suhail Dutta
The “memberOf” attribute contains all the groups except the primary group of the object. To get the primary group, you need get the “primaryGroupId” attribute and then find the group which has it’s “primaryGroupToken” set to this value. (This is when using the LDAP provider)
There is one example about how to obtain the primary group, see http://groups.google.com/group/microsoft.public.platformsdk.active.directory/msg/2080bc371d757ba3 q=primary+group&start=20&hl=en&lr=&ie=UTF-8&rnum=24
Also if you only have a group and wants to know all the users that belong to that group, just retrieve the member attribute of this group object.
Weiqing Tu