private string m_userName = "johnsonzhang";
private string m_Password = "*****";
private string m_ADPath = "LDAP://192.168.XXX.xxx";
public bool IsAuthenticated(String domain, String username, String pwd)
{
try
{
DirectoryEntry entry = new DirectoryEntry(this.m_ADPath, username, pwd);
string name = entry.Name;
return true;
}
catch
{
return false;
}
}
private string m_Password = "*****";
private string m_ADPath = "LDAP://192.168.XXX.xxx";
public bool IsAuthenticated(String domain, String username, String pwd)
{
try
{
DirectoryEntry entry = new DirectoryEntry(this.m_ADPath, username, pwd);
string name = entry.Name;
return true;
}
catch
{
return false;
}
}