string username ="ABC";
string password="abc";
bool result =false;
string domain = System.Configuration.ConfigurationSettings.AppSettings["Domain"];
using (PrincipalContext pc = new PrincipalContext(ContextType.Domain, domain))
{
result =pc.ValidateCredentials(username, password);
}
if( result )
{
alert("User validated");
}This code help you to Validate the Userid and password with active directory using domain name.
