s3:winbindd:cache: fix offline logons with cached credentials (bug #9321)
commitd60bcf3d14991990612875f7ff080b8f5db8f8ef
authorMichael Adam <obnox@samba.org>
Thu, 1 Nov 2012 13:41:56 +0000 (1 14:41 +0100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 2 Nov 2012 08:21:34 +0000 (2 09:21 +0100)
tree2ff7e4cc9146c22bc7f427ca7478e316b216a452
parentf40bfcaf4ce8e6a9001d843bbc48505b769d2777
s3:winbindd:cache: fix offline logons with cached credentials (bug #9321)

The removal of consumption of the time field from the centry
as "removal of unused variable" in 21528da9cd12a4f5c3792a482a5d18fe946a6f7a
had the side effect of changing the offset for reading the following
nt password hash, so the read password hash was wrong.

This patch re-installs the consumption of the time,
thereby fixing the bug without changing the disk format of the cache.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit f853c1792967332c4aff52c0fb35f653f614f86d)
source3/winbindd/winbindd_cache.c