Fix bug #7072 - Accounts can't be unlocked from ldap.
commite0206b6dbc04b92526d241546f3463a47c5f312a
authorJeremy Allison <jra@samba.org>
Thu, 28 Jan 2010 00:42:06 +0000 (27 16:42 -0800)
committerFernando J V da Silva <fernandojvsilva@yahoo.com.br>
Thu, 4 Feb 2010 19:09:48 +0000 (4 17:09 -0200)
treec03eadd5c52fb78188cd0fa38146c066b4856ae1
parent846e0cb81765300c224b82e4860646ebfbc58aac
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 :-).

Jeremy.
source3/passdb/login_cache.c