using (PrincipalContext pc = new PrincipalContext(ContextType.Domain, domain)) { if (!pc.ValidateCredentials(userName, password, ContextOptions.Negotiate)) { return string.Empty; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)