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/
The problem was that the randomly generated password did not meet the requirements set by the AD.