如何在公元重置密码,得到一个LDP OperationNotSupported错误公元、错误、密码、如何在

2023-09-08 13:17:56 作者:男生个性高冷

我们能够在活动目录中创建的帐户。但由于某些原因,我们无法登录他们。我们的系统的工作原理是用户的方式适用于一个帐户,一个管理员批准它和向用户发送的临时密码来登录用。 我们认为,这可能都与用户的权限,但不能肯定。我们的code是广泛的,但这里是我们的一些code和控制台日志:

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

我们正在使用这种previous上市后相同的随机密码生成器:

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

如何生成一个随机的字母数字字符串?

的Java

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

formatPassword 函数来自这篇文章:

The formatPassword function comes from this article:

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

推荐答案

问题是随机产生的密码不符合由AD设定的要求。

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