Last post Sep 27, 2012 03:15 PM by Yavuz B.
Sep 13, 2012 03:05 PM|Yavuz B.|LINK
i am querying the AD for all members of a group.
As a result i get users AND groups. My question: How can i find out, what the single result is (person or group)?
This is my code, i get a Resultpropertycollection and when i loop through the collection, i want to know for each item if it is a person or group.
For Each sr As SearchResult In ds.FindAll
Dim valueCollection As ResultPropertyValueCollection = sr.Properties("member")
Dim propertyValue As Object
For Each propertyValue In valueCollection
Sep 26, 2012 09:33 AM|lamba.rahul89|LINK
Can you tell us more about your structure of Domain Controller and also the code for LDAP connection string.
Sep 27, 2012 03:15 PM|Yavuz B.|LINK
i think i found the solution. I would like to share it here.
A returned object has a property called SchemaClassName. By checking this property i am able to distinguish between groups and persons/users.
Hope this helps.