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?
A:
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.
BC
2009-02-18 18:38:46