Don't generate password history error if history is set to 0.
https://fedorahosted.org/freeipa/ticket/2805
This commit is contained in:
1 parent
191f514640
commit
3eadcdf123
1 file changed
+1
-1
@@ -948,7 +948,7 @@ Slapi_Value **ipapwd_setPasswordHistory(Slapi_Mods *smods,
|
||||
data->policy.history_length,
|
||||
pwd_history, &new_pwd_history, &n);
|
||||
|
||||
if (ret) {
|
||||
if (ret && data->policy.history_length) {
|
||||
LOG_FATAL("failed to generate new password history!\n");
|
||||
goto done;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user