Posted on: 5/7/2015 1:12:49 PM | Views : 612

Tried under AD forums but nobody answering and need help on this. lI have gotten this far and this works to get members of active Directory group, but what I want to show is the display name of the members and not the member property.  When I load in the displayname I get an index out of range error, I thought it was a simple load Properties command but it does not like the displayname and I know there are members in the groups I am putting in cause they show with the member property.  how can I show displayname instead of the member property output.  Thanks
public static string getGroupmemebers(string theGroup){ var DirEntry = new DirectoryEntry(OUGroups, ldapUser, ldapPass, AuthenticationTypes.Secure); var oSearcher = new DirectorySearcher(DirEntry); SearchResult result; DirectoryEntry dir; string theList = ""; try { ...

Go to the complete details ...