hi! I want to verify that given username/password pair is a valid windows vista account using c#.
+1
A:
// create a "principal context" - e.g. your domain (could be machine, too)
PrincipalContext pc = new PrincipalContext(ContextType.Domain, "YOURDOMAIN");
// validate the credentials
bool isValid = pc.ValidateCredentials("myuser", "mypassword")
Easy peasy
Nick Brooks
2009-12-16 22:31:04