c# - Can PrincipalContext be used to get Active Directory information if computer is not domained joined -
i using principalcontext. receiving "the ldap server unavailable." "cannot reached". developing machine not joined domain want query. matter? need pass admin creds connect ad, can query or search it?
my code resembles this: http://www.codeproject.com/kb/system/usingaccountmanagement.aspx
it matter. can site access setting <identity>
tag in web.config user ldap reading privileges:
<system.web> <identity username="domain\ldapuser" password="ldappw"/> </system.web>
here's msdn
Comments
Post a Comment