Hi, when I created this JIRA, the password policy code was not totally functional.
Using 2.0.0-M16, we have the ability to capture all login failure scenarios. I don't need anything fixed here. Thanks!
We add a password policy control to the bind request.
Then we check the the PasswordPolicyResponse and from there we can handle the different failure cases by comparing the responses to the PasswordPolicyErrorEnum.
Map<String,Control> mapControls = bindResponse.getControls();
Control ctrl = mapControls.get(PasswordPolicy.OID);
PasswordPolicyResponse pw = null;
PasswordPolicy pwPolicy = ((PasswordPolicyDecorator)ctrl).getDecorated();
pw = pwPolicy.getResponse();
// process response codes to capture and raise errors. one example method is below
/**Determine if user account is locked from PasswordPolicyResponse code.