pull up r24601 from trunk
authorTom Yu <tlyu@mit.edu>
Mon, 31 Jan 2011 22:44:22 +0000 (22:44 +0000)
committerTom Yu <tlyu@mit.edu>
Mon, 31 Jan 2011 22:44:22 +0000 (22:44 +0000)
 ------------------------------------------------------------------------
 r24601 | ghudson | 2011-01-21 00:00:53 -0500 (Fri, 21 Jan 2011) | 8 lines

 ticket: 6849
 subject: Fix edge case in LDAP last_admin_unlock processing
 target_version: 1.9.1
 tags: pullup

 In the LDAP KDB module, set appropriate flags when zeroing
 entry->fail_auth_count due to an administrative unlock.

ticket: 6849
version_fixed: 1.9.1
status: resolved

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-9@24609 dc483132-0cff-0310-8789-dd5450dbe970

src/plugins/kdb/ldap/libkdb_ldap/lockout.c

index 509c692e67c6edd172878597c391e482822d0b8a..a218dc7e024aa9a56647701ec1c32a409e11b7e5 100644 (file)
@@ -196,6 +196,7 @@ krb5_ldap_lockout_audit(krb5_context context,
             entry->last_failed <= unlock_time) {
             /* Reset fail_auth_count after administrative unlock. */
             entry->fail_auth_count = 0;
+            entry->mask |= KADM5_FAIL_AUTH_COUNT;
         }
 
         if (failcnt_interval != 0 &&