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

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -