Fix bug #7072 - Accounts can't be unlocked from ldap.
commit6e04a25778e83a8347c0b4dd64f2a22abe819445
authorJeremy Allison <jra@samba.org>
Thu, 28 Jan 2010 00:55:47 +0000 (27 16:55 -0800)
committerKarolin Seeger <kseeger@samba.org>
Wed, 10 Feb 2010 10:08:37 +0000 (10 11:08 +0100)
tree83ce0a821367b20d2bc4d2ace183f93bcfcef13a
parenta6ae7a552f851a399991262377cc0e062e40ac20
Fix bug #7072 - Accounts can't be unlocked from ldap.

Fix suggested by Andy Hanton <andyhanton@gmail.com>. The LOGIN_CACHE
struct contains two time_t entries, but was being written to and
read from via tdb_pack/tdb_unpack functions using explicit 32-bit int specifiers.
This would break on machines with a 64-bit time_t. Use correct int
sizes for tdb_pack/tdb_unpack.

We have to fix this properly before 2037 :-).

Contains fixes from master 627fb85092f728065b6d772c41aeb75018154e86
and 69fd8461b8792f4fee1b61db03953044565492c6.

Jeremy.
(cherry picked from commit 0c3c061abb55742da4d7e97e3c4b348ba78a3698)
source3/passdb/login_cache.c