mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Don't save password history on non-Kerberos accounts
While other password policies were properly ignored the password history was always being saved if the global history size was non-zero. Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
committed by
Christian Heimes
parent
bcbf64b1bf
commit
8b7bb96b32
@@ -888,8 +888,8 @@ int ipapwd_SetPassword(struct ipapwd_krbcfg *krbcfg,
|
||||
slapi_mods_add_string(smods, LDAP_MOD_REPLACE,
|
||||
"userPassword", data->password);
|
||||
|
||||
/* set password history */
|
||||
if (data->policy.history_length > 0) {
|
||||
/* set password history if a Kerberos object */
|
||||
if (data->policy.history_length > 0 && is_krb) {
|
||||
pwvals = ipapwd_setPasswordHistory(smods, data);
|
||||
if (pwvals) {
|
||||
slapi_mods_add_mod_values(smods, LDAP_MOD_REPLACE,
|
||||
|
||||
Reference in New Issue
Block a user