From 2941b044b3fed09cd94d6b2e9057d3e58c12703b Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 30 Nov 2006 00:09:34 +0000 Subject: r19958: Add check for WINBIND_OFFLINE key. Jeremy. (This used to be commit 270e84db6de66b4f20dc0a564f706dae4c00b0b2) --- source3/nsswitch/winbindd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/nsswitch/winbindd.c') diff --git a/source3/nsswitch/winbindd.c b/source3/nsswitch/winbindd.c index 41662900ce..047b6c3b85 100644 --- a/source3/nsswitch/winbindd.c +++ b/source3/nsswitch/winbindd.c @@ -1022,6 +1022,9 @@ int main(int argc, char **argv, char **envp) pidfile_create("winbindd"); + /* Ensure all cache and idmap caches are consistent + before we startup. */ + if (winbindd_validate_cache()) { /* We have a bad cache, but luckily we just deleted it. Restart ourselves */ @@ -1051,9 +1054,6 @@ int main(int argc, char **argv, char **envp) exit(1); } - /* Ensure all cache and idmap caches are consistent - before we startup. */ - /* React on 'smbcontrol winbindd reload-config' in the same way as to SIGHUP signal */ message_register(MSG_SMB_CONF_UPDATED, msg_reload_services); -- cgit