Open GoogleCodeExporter opened 9 years ago
// retrieve the user's old password from the userInfoBean in the session
final String oldPassword = pwmSession.getUserInfoBean().getUserCurrentPassword();
boolean setPasswordWithoutOld = false;
if (oldPassword == null || oldPassword.length() < 1) {
if (pwmApplication.getProxyChaiProvider().getDirectoryVendor() == ChaiProvider.DIRECTORY_VENDOR.MICROSOFT_ACTIVE_DIRECTORY) {
setPasswordWithoutOld = true;
}
}
if (!setPasswordWithoutOld) {
// Check to make sure we actually have an old password
if (oldPassword == null || oldPassword.length() < 1) {
final String errorMsg = "cannot set password for user, old password is not available";
final ErrorInformation errorInformation = new ErrorInformation(PwmError.ERROR_WRONGPASSWORD, errorMsg);
throw new PwmOperationalException(errorInformation);
}
}
Original comment by jimm...@gmail.com
on 2 Jun 2015 at 7:27
Same situation here. My Ldap is OpenLdap
Original comment by eloy.fer...@gmail.com
on 22 Jul 2015 at 9:06
Original issue reported on code.google.com by
jimm...@gmail.com
on 2 Jun 2015 at 7:12