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-08-27 15:21:03 +02:00
committed by Martin Kosek
parent 191f514640
commit 3eadcdf123
@@ -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;
}