http://topic.csdn.net/t/20030220/12/1447030.html
http://www.it130.cn/Article/FAQ/.net-jishu/asp.net/2007-2-8/2007020819302900.html
http://www.it130.cn/Article/FAQ/.net-jishu/asp.net/2007-2-8/2007020819302900.html
{
bool flag1=false;
try
{
if (pwd == null || pwd.Trim().Length == 0)
{
return flag1;
}
System.DirectoryServices.DirectoryEntry ads = new System.DirectoryServices.DirectoryEntry("WinNT://yestem.com", uid, pwd);
try
{
if (ads.Name == "yestem.com")
{
flag1 = true;
}
}
catch (Exception e1)
{
flag1 = true;
}
return flag1;
}