karumbu2004
Programmer
- May 20, 2004
- 5
How to fetch all the AD Groups from Active directory for a specific DOMAIN and LOCATION using LDAP.
I have tried following code, which returns all groups for a domain, but i am unable to filter it out by LOCATION.
Dim enTry As DirectoryEntry = New DirectoryEntry("LDAP://SOMEDOMAIN")
Dim mySearcher As DirectorySearcher = New DirectorySearcher(enTry)
mySearcher.Filter = "(objectClass=group)"
Any help or direction is highly appreciated.
I have tried following code, which returns all groups for a domain, but i am unable to filter it out by LOCATION.
Dim enTry As DirectoryEntry = New DirectoryEntry("LDAP://SOMEDOMAIN")
Dim mySearcher As DirectorySearcher = New DirectorySearcher(enTry)
mySearcher.Filter = "(objectClass=group)"
Any help or direction is highly appreciated.