asp.net-mvc,c#-4.0,active-directory,directoryservices,principalcontext
No, that would not be a correct assumption. ContextType.Machine means that you want to work with local accounts. Your PrincipalSearcher will end up searching the local SAM database rather than Active Directory...
As the official documentation on MSDN states: The System.DirectoryServices.AccountManagement namespace provides uniform access and manipulation of user, computer, and group security principals across the multiple principal stores: Active Directory Domain Services (AD DS), Active Directory Lightweight Directory Services (AD LDS), and Machine SAM (MSAM). System.DirectoryServices.AccountManagement manages directory objects independent of...
vb.net,.net-4.0,userprincipal,extending-classes,principalcontext
PROBLEM 1 I was able to solve Problem 1 by adding the following to the top of the class after the Imports <DirectoryRdnPrefix("CN")> _ <DirectoryObjectClass("user")> _ PROBLEM 2 I have also been banging my head against this for to long and was finally able to resolve Problem 2. The DirectoryOU...