public static string[] GetGroupMembers(string groupName) { //ADUtil ad = new ADUtil(); DirectorySearcher adSearcher = GetGroupSearcher(groupName); SearchResult result = adSearcher.FindOne(); if (result == null) { return new string[] { } } ; GroupExpander g = new GroupExpander(result.GetDirectoryEntry()); adSearcher.Dispose(); return(g.Members); }
public static string[] GetGroupMembers(DirectoryEntry groupEntry) { GroupExpander g = new GroupExpander(groupEntry); return g.Members; }
public static string[] GetGroupMembers(string groupName) { //ADUtil ad = new ADUtil(); DirectorySearcher adSearcher = GetGroupSearcher(groupName); SearchResult result = adSearcher.FindOne(); if (result == null) return new string[] { }; GroupExpander g = new GroupExpander(result.GetDirectoryEntry()); adSearcher.Dispose(); return g.Members; }
public static string[] GetGroupMembers(DirectoryEntry groupEntry) { GroupExpander g = new GroupExpander(groupEntry); return(g.Members); }