http://topic.csdn.net/t/20030220/12/1447030.html
http://www.it130.cn/Article/FAQ/.net-jishu/asp.net/2007-2-8/2007020819302900.html

解决方案 »

  1.   

    public     bool   CheckDomainUser(string   uid,   string   pwd) 

    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; 
    }