Questions tagged [principalcontext]

PrincipalContext class is part of the Microsoft .NET System Directory Services Account Management API. It encapsulates a server or a domain against which operations are performed. It is also used disambiguate the generic deprecated tag [tag:context].

PrincipalContext class is part of the Microsoft .NET System Directory Services Account Management API. It encapsulates a server or a domain against which operations are performed.

References

See the main documentation of this Class in in the MSDN library.

137 questions
0
votes
0 answers

Principalcontext configuration with web.config

I'm able to get group memberships using following code: PrincipalContext(ContextType.Domain, "mydomain", "administrator", "Password")) I would like to move this administrator username password in web.config so that I dont have to make changes to…
-1
votes
1 answer

User Principal is always null

I am logged in under user User001 under domain DomainA and with password Pass001. I use this code //var principalContext = new PrincipalContext( //ContextType.Domain, //"DomainA", //"User001", //"Pass001"); var principalContext =…
NoWar
  • 36,338
  • 80
  • 323
  • 498
1 2 3
9
10