思归,关于ADSI ChangePassword,我还有一些疑问。

superykai 2003-08-20 02:20:34
http://support.microsoft.com/default.aspx?scid=kb;en-us;251189
Thanks Saucer for helping, I did read that article, but not quite understand, I checked local computer's registry, there are Time and File name and value in HKEY_LOCAL_MACHINE\SOFTWAR\Microsoft\ADs\Providers\LDAP\CN=Aggregation,CN=Schema..., that article mention three probably reasons might cause problem, but how can I know which one is? Thanks again.

kai
...全文
27 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
saucer 2003-08-20
  • 打赏
  • 举报
回复
does username/oldpwd have permission to change the password? how is your AD setup? this guy is having a same problem

http://www3.hknetug.com/Forums/ShowPost.aspx?PostID=1529


Willy Denoyette [MVP] (willy.denoyette@pandora.be) prvoides a standard answer:

string UserPath = "LDAP://dddd/CN=SomeUserName,CN=Users,DC=....,DC=....,DC=....";
DirectoryEntry userEntry = new DirectoryEntry(UserPath, strUsername, strPassword, AuthenticationTypes.Secure );
object[] password = new object[] {"mysecretpwd"}; // New and Old password strings when ChangePassword
object ret = userEntry.Invoke("SetPassword", password ); // Or ChangePassword
userEntry.CommitChanges();


http://groups.google.com/groups?selm=eMaF6M%24SBHA.1512%40tkmsftngp07&oe=UTF-8&output=gplain

110,536

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧