Don't generate password history error if history is set to 0.

https://fedorahosted.org/freeipa/ticket/2805
This commit is contained in:
Rob Crittenden 2012-07-20 14:07:23 -04:00 committed by Martin Kosek
parent 191f514640
commit 3eadcdf123

View File

@ -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;
}