A good thing I discovered the System.DirectoryServices.AccountManagement namespace.
Take a look at the code snippet. I think it's pretty readable.. What do you think?
The GetListOfGroupsRecursively() function tries to find a Principal object by the Username of the ADUser parameter. If the Principal object is found, we call the GetGroups() function and store it's return value in a PrincipalSearchResult
why are you doing everything in .net? is this a requirement?
ReplyDeleteIt is :) Are there other frameworks where LDAP querying is easier?
ReplyDelete