I\'m seeing some odd behaviour here using PrincipalContext.ValidateCredentials
. The set-up is two Active Directory domains in parent/child setup (so we have pri
I have used ContextOptions.SimpleBind
flag with ValidateCredentials
it solved my problem..
Sample code:
using (var context = new PrincipalContext(ContextType.Domain, "DOMAIN", null))
{
bool loginResult = context.ValidateCredentials(username, password, ContextOptions.SimpleBind); // returns false for unknown user
}