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

Popular posts from this blog

How can I edit my VIM config so that Vim treats ".ejs" files the same as it currently treats my html files? -

Python __call__ special method practical example -