mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Reset failed login count to 0 when admin resets password.
https://fedorahosted.org/freeipa/ticket/1441
This commit is contained in:
parent
b2c5b2b4b5
commit
f534445e26
@ -1197,6 +1197,12 @@ int ipapwd_SetPassword(struct ipapwd_krbcfg *krbcfg,
|
||||
slapi_mods_add_string(smods, LDAP_MOD_REPLACE,
|
||||
"sambaPwdLastset", modtime);
|
||||
}
|
||||
if (is_krb) {
|
||||
if (data->changetype == IPA_CHANGETYPE_ADMIN) {
|
||||
slapi_mods_add_string(smods, LDAP_MOD_REPLACE,
|
||||
"krbLoginFailedCount", "0");
|
||||
}
|
||||
}
|
||||
/* let DS encode the password itself, this allows also other plugins to
|
||||
* intercept it to perform operations like synchronization with Active
|
||||
* Directory domains through the replication plugin */
|
||||
|
Loading…
Reference in New Issue
Block a user