From 69fd8461b8792f4fee1b61db03953044565492c6 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 27 Jan 2010 16:52:40 -0800 Subject: [PATCH 1/1] Second part of fix for bug #7072 - Accounts can't be unlocked from ldap. Missed read of entry_timestamp (was entry->entry_timestamp). Jeremy. --- source3/passdb/login_cache.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/passdb/login_cache.c b/source3/passdb/login_cache.c index 5e1c9775cdf..5630372a013 100644 --- a/source3/passdb/login_cache.c +++ b/source3/passdb/login_cache.c @@ -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, - &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")); -- 2.34.1