更改活动目录用户的密码 [英] change password for active directory user

查看:99
本文介绍了更改活动目录用户的密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用以下代码将密码更改为活动目录用户时,出现异常


//string OldPassword,string NewPassword)

试试
{
entry.Invoke("ChangePassword",object []密码);
entry.CommitChanges();
}


无法从域控制器读取配置信息,原因可能是计算机不可用,或者是由于访问被拒绝

when i am try to change password to an active directory user using the following code i am getting the the exception


//string OldPassword, string NewPassword)

try
{
entry.Invoke("ChangePassword", object[] password);
entry.CommitChanges();
}


Configuration information could not be read from the domain controller, either because the machine is unavailable, or access has been denied

推荐答案

那里有一个可以列出的异常列表放入文档 [
There''s a list of exceptions that can be thrown in the documentation[^], including their reasons. I suggest you also read the notes below the exceptions, as this would require a specific set-up.


这篇关于更改活动目录用户的密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆