Hi,
I am using the following codel. But it is always returning 'False'. Even though i gave correct values..
Plz help...
PrincipalContext adContext = new PrincipalContext(ContextType.Domain, "xxx.xxx.0.15", "Administrator", "Password");
using (adContext)
{
return adContext.ValidateCredentials(userName, passWord, ContextOptions.Signing);
}
I tried the this one also..
DirectoryEntry de = new DirectoryEntry("LDAP://serverIpAddress/CN=myusername,CN=Users,DC=domain,DC=com" + "domain.com\\", userName, passWord);
This erros is coming
Unknown error (0x80005000)