Getting a list of Active Directory Groups using C# or VB .Net
The method returns a string array of all groups in Active Directory.
An instance of the LDAP manager must be instantiated for a valid ADDS server
and be logged in
The method is called passing the Username as a string. Two
things can then occur:
The method is called without parameters.
- A string array of usernames is returned.
- An Exception will be thrown for other errors
Where LdapConnection is an instance of LdapManager
The LdapConnection remains logged on