Getting a list of Active Directory Groups using C# or VB .Net
The method returns a string array of all groups in Active Directory.
Method: GetGroupList
Parameters: none
Precondition
An instance of the LDAP manager must be instantiated for a valid ADDS server
and be logged in
Functionality
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
Example
Where LdapConnection is an instance of LdapManager
Post Condition
The LdapConnection remains logged on
|