summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2013-11-26 15:32:18 +1300
committerStefan Metzmacher <metze@samba.org>2014-04-02 17:12:47 +0200
commit752b8173659f6ee12db93981a588b1e2b884fb3e (patch)
tree03e974fa4477b220c226c68f3c9147522b6dd7c8 /source4
parent997e120f664facfb48548b765a44063b31b96880 (diff)
downloadsamba-752b8173659f6ee12db93981a588b1e2b884fb3e.tar.gz
kdc: call authsam_zero_bad_pwd_count on successful AS-REQ
Change-Id: I91bb663dcf1b1033cf756a860404c677e4ac4ade Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/kdc/hdb-samba4.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/kdc/hdb-samba4.c b/source4/kdc/hdb-samba4.c
index 7b03588c6ea..47d59d4aeca 100644
--- a/source4/kdc/hdb-samba4.c
+++ b/source4/kdc/hdb-samba4.c
@@ -177,6 +177,8 @@ static krb5_error_code hdb_samba4_auth_status(krb5_context context, HDB *db,
if (hdb_auth_status == HDB_AUTH_WRONG_PASSWORD) {
authsam_update_bad_pwd_count(kdc_db_ctx->samdb, p->msg, ldb_get_default_basedn(kdc_db_ctx->samdb));
+ } else if (hdb_auth_status == HDB_AUTH_SUCCESS) {
+ authsam_zero_bad_pwd_count(kdc_db_ctx->samdb, p->msg);
}
return 0;
}