Second part of fix for bug #7072 - Accounts can't be unlocked from ldap.
authorJeremy Allison <jra@samba.org>
Thu, 28 Jan 2010 00:52:40 +0000 (16:52 -0800)
committerJeremy Allison <jra@samba.org>
Thu, 28 Jan 2010 00:52:40 +0000 (16:52 -0800)
Missed read of entry_timestamp (was entry->entry_timestamp).

Jeremy.

source3/passdb/login_cache.c

index 5e1c9775cdf19c09d5372484dd779955cfbbdb5c..5630372a013eeea69a511f1c15f3dd4e13f7c52f 100644 (file)
@@ -96,7 +96,8 @@ LOGIN_CACHE * login_cache_read(struct samu *sampass)
        ZERO_STRUCTP(entry);
 
        if (tdb_unpack (databuf.dptr, databuf.dsize, SAM_CACHE_FORMAT,
        ZERO_STRUCTP(entry);
 
        if (tdb_unpack (databuf.dptr, databuf.dsize, SAM_CACHE_FORMAT,
-                       &entry->entry_timestamp, &entry->acct_ctrl, 
+                       &entry_timestamp,
+                       &entry->acct_ctrl,
                        &entry->bad_password_count,
                        &bad_password_time) == -1) {
                DEBUG(7, ("No cache entry found\n"));
                        &entry->bad_password_count,
                        &bad_password_time) == -1) {
                DEBUG(7, ("No cache entry found\n"));