diff options
author | Rob Crittenden <rcritten@redhat.com> | 2012-07-20 14:07:23 -0400 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-08-27 15:21:03 +0200 |
commit | 3eadcdf123c6c58bdbf25f3e8bdf12c2ddf9127f (patch) | |
tree | 448bfdf6209b2ea126a691488bbbab98c50b16df | |
parent | 191f5146401db8d6aa693b08b18322ef7df2aab2 (diff) | |
download | freeipa-3eadcdf123c6c58bdbf25f3e8bdf12c2ddf9127f.tar.gz freeipa-3eadcdf123c6c58bdbf25f3e8bdf12c2ddf9127f.tar.xz freeipa-3eadcdf123c6c58bdbf25f3e8bdf12c2ddf9127f.zip |
Don't generate password history error if history is set to 0.
https://fedorahosted.org/freeipa/ticket/2805
-rw-r--r-- | daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_common.c b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_common.c index c36189987..cac8bf45f 100644 --- a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_common.c +++ b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_common.c @@ -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; } |