Fix bug #7072 - Accounts can't be unlocked from ldap.
authorJeremy Allison <jra@samba.org>
Thu, 28 Jan 2010 01:16:04 +0000 (17:16 -0800)
committerKarolin Seeger <kseeger@samba.org>
Thu, 4 Feb 2010 09:12:10 +0000 (10:12 +0100)
commit0b36486fa7d2689635018c2fc883860251dc8066
tree2fdfc554d2fb6df827bf4bf0e2c9247c25e94780
parentcbf09baa90f5c4cfa8a0019ccc79211d72d13629
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.
source/passdb/login_cache.c