How to reset password in AD, getting an LDP OperationNotSupported error

为君一笑 提交于 2020-01-17 01:14:40

问题


We are able to create accounts in the active directory. But for some reason we are unable to login with them. The way our system works is a user applies for an account, an admin approves it and the user is sent a temporary password to login with. We think it may have to do with the permissions of the user but are not quite sure. Our code is extensive but here is some of our code and console log:

javax.naming.OperationNotSupportedException: [LDAP: error code 53 - 0000052D: SvcErr: DSID-031A120C, problem 5003 (WILL_NOT_PERFORM), data 0

We are using the same random password generator listed in this previous post:

How to generate a random alpha-numeric string?

Java

RandomPassword randPass = new RandomPassword(11);
String temporaryPassword = randPass.nextString();
Attribute password = new BasicAttribute("unicodePwd", formatPassword(temporaryPassword));

The formatPassword function comes from this article:

http://www.ramblingtech.com/will_not_perform-error-from-ad-on-password-change-using-java/


回答1:


The problem was that the randomly generated password did not meet the requirements set by the AD.



来源:https://stackoverflow.com/questions/25746662/how-to-reset-password-in-ad-getting-an-ldp-operationnotsupported-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!