using (PrincipalContext pc = new PrincipalContext(ContextType.Domain)) { bool isValid = pc.ValidateCredentials(username, password); if (isValid) {
No comments:
Post a Comment