Reputation: 5971
I need to get a list of all users, passwords and groups from an activeDirectory. I use System.DirectoryServices. How do I do this?
edit: How do I get all groups a specific user belongs too?
Upvotes: 0
Views: 656
Reputation: 57252
You could use a DirectorySearcher, using filters like "(objectClass=user)" and "(objectClass=group)".
You cannot get the passwords, anyway. That would be a huge security flaw...
Upvotes: 3