I need to query Active Directory using ASP.NET / VB.NET to find all groups in the AD that a user is a member of. I can use this code to return some information. I want to return the list of groups as an array that I can then search through to find specific Groups that belong to that user.
Dim entry As New DirectoryServices.DirectoryEntry("LDAP://int.domain.net")
Dim mySearcher As New System.DirectoryServices.DirectorySearcher(entry)
Dim result As System.DirectoryServices.SearchResult
mySearcher.Filter = ("(anr= jdoe)")
For Each result In mySearcher.FindAll()
Thanks for the help.