ValidateCredentials() returns FALSE on First Call but TRUE on Subsequent Calls
- by Nick Gotch
I'm using the following code to authenticate users on my web service:
using (PrincipalContext context = new PrincipalContext(ContextType.Domain, domain))
{
return context.ValidateCredentials(userName, password);
}
The obstacle I'm running into is that the first call to ValidateCredentials() is returning false but subsequent calls return…