对活动目录操作时要求用户,但我添加时出错大家看看为什么啊?
        try
        {
            DirectoryEntry entry = new DirectoryEntry("LDAP://192.168.1.200:389/OU=applications,OU=cdb,DC=yhtr,DC=com", "administrator", " ", AuthenticationTypes.Secure);
            DirectoryEntry subEntry = entry.Children.Find("ou=jypx", "organizationalUnit");
            DirectoryEntry deUser = subEntry.Children.Add("cn=wwww", "user");
            deUser.Invoke("SetPassword" ,"12345Abc"); 
            deUser.CommitChanges();                    
            deUser.Close();
            Response.Write("添加用户成功<br>");
        }
        catch (Exception ex)
        {
            Response.Write(ex.Message);
            Response.Write("<br>添加用户失败");
        }
其中deUser.Invoke("SetPassword" ,"12345Abc");报 "调用的目标发生了异常。"  不知道为什么,谁能帮帮小弟
还有对用户更改时如何更改密码