Luke
Luke

Reputation: 5971

How do i get a list of all users, passwords and groups from an activeDirectory using System.DirectoryServices?

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

Answers (1)

Paolo Tedesco
Paolo Tedesco

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

Related Questions