diff options
author | Jeremy Allison <jra@samba.org> | 2007-04-13 22:29:50 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:19:19 -0500 |
commit | c7d136dcac6fa1854f0115ccfd85ebcbb092c79a (patch) | |
tree | ed6cff1589d4bd5e3266c9ae19d18ab7b272ba8e /source3/nsswitch/winbindd.c | |
parent | a2bab163bead11502f07844c56e273ae3e696a0c (diff) | |
download | samba-c7d136dcac6fa1854f0115ccfd85ebcbb092c79a.tar.gz samba-c7d136dcac6fa1854f0115ccfd85ebcbb092c79a.tar.bz2 samba-c7d136dcac6fa1854f0115ccfd85ebcbb092c79a.zip |
r22209: Fix the storage of time_t -> make it 64 bits (use the
same load/store function as NTTIME). Add a version number
string to the winbindd cache so we can tell if it needs
upgrading. THIS WILL DELETE ANY EXISTING winbindd_cache.tdb
on first startup regardless of offline auth status. Once
this is done we're in good shape though.
Jeremy.
(This used to be commit c52c7f91af80d5fbb2574b5acf10e6afef3b0c7e)
Diffstat (limited to 'source3/nsswitch/winbindd.c')
-rw-r--r-- | source3/nsswitch/winbindd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd.c b/source3/nsswitch/winbindd.c index 39bd66989c..b17172f4f2 100644 --- a/source3/nsswitch/winbindd.c +++ b/source3/nsswitch/winbindd.c @@ -1081,6 +1081,11 @@ int main(int argc, char **argv, char **envp) exit(1); } + /* Initialize cache (ensure version is correct). */ + if (!initialize_winbindd_cache()) { + exit(1); + } + /* React on 'smbcontrol winbindd reload-config' in the same way as to SIGHUP signal */ message_register(MSG_SMB_CONF_UPDATED, msg_reload_services, NULL); |