Click here to Skip to main content
15,888,401 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
My code for authentication with clear text is as below. How do i authenticate user with hash password?

PrincipalContext adContext = new PrincipalContext(ContextType.Domain);

UserPrincipal user = UserPrincipal.FindByIdentity(adContext, Username);
using (adContext)
{
bool IsValid = adContext.ValidateCredentials(Username, Password);
return IsValid ;

}
Posted
Updated 9-Oct-15 1:23am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900