Reset failed login count to 0 when admin resets password.

https://fedorahosted.org/freeipa/ticket/1441
This commit is contained in:
Rob Crittenden 2011-07-06 16:26:27 -04:00 committed by Martin Kosek
parent b2c5b2b4b5
commit f534445e26

View File

@ -1197,6 +1197,12 @@ int ipapwd_SetPassword(struct ipapwd_krbcfg *krbcfg,
slapi_mods_add_string(smods, LDAP_MOD_REPLACE, slapi_mods_add_string(smods, LDAP_MOD_REPLACE,
"sambaPwdLastset", modtime); "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 /* let DS encode the password itself, this allows also other plugins to
* intercept it to perform operations like synchronization with Active * intercept it to perform operations like synchronization with Active
* Directory domains through the replication plugin */ * Directory domains through the replication plugin */