急,LDAP连接AD问题
wfenj 2010-11-23 07:30:08 我用LDAP,SSL和AD连接,能连上SSL了,当重置用户密码的时候,下面的代码也运行正常,输出ok,但是用户的密码还是原来的密码才能登陆进去,请问是为什么呢,我try catch也做了,没有捕获倒任何异常。
String newQuotedPassword = "\"" + sNewPassword + "\"";
byte[] newUnicodePassword = newQuotedPassword.getBytes("UTF-16LE");
mods[0] = new ModificationItem(DirContext.REPLACE_ATTRIBUTE,
new BasicAttribute("unicodePwd", newUnicodePassword));
ctx.modifyAttributes(sUserName, mods);
System.out.println("ok");
不好意思很久没上CSDN,没多少分了,请帮忙转倒技术取,谢谢