code_junkie

Reading ldap group member from c#

Nov 13th, 2011
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. DirectoryEntry dirEnt = new DirectoryEntry();
  2.  
  3. using (DirectorySearcher srch = new DirectorySearcher(dirEnt, "(objectClass=Group)"))
  4. {
  5. srch.PageSize = 1000;
  6. SearchResultCollection results = srch.FindAll();
  7. }
Add Comment
Please, Sign In to add comment