s3:winbindd:cache: fix offline logons with cached credentials (bug #9321)
commitf853c1792967332c4aff52c0fb35f653f614f86d
authorMichael Adam <obnox@samba.org>
Thu, 1 Nov 2012 13:41:56 +0000 (1 14:41 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 1 Nov 2012 15:11:05 +0000 (1 16:11 +0100)
tree655b69520bb4d0eac7ae2e0f0d4f0de1568ec2b6
parent75c51d6561f6f39dd02fd942709039b871957f44
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>
source3/winbindd/winbindd_cache.c