nicoruy
nicoruy

Reputation: 93

Authentication accessing ActiveDirectory with DirectorySearcher

I need to access information in my Active Directory domain using domain credentials. The DirectorySearcher class does not have user and password arguments. How can I specify them?

Upvotes: 2

Views: 2672

Answers (1)

BC.
BC.

Reputation: 24978

See the "Authenticating to your Directory" section from this article on MSDN. The gist of it is you connect to your ldap root with DirectoryEntry (That takes credentials in the constructor) and then use a DirectorySearcher on it.

Upvotes: 2

Related Questions