summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-04-01 14:01:28 +0200
committerStefan Metzmacher <metze@samba.org>2008-04-12 09:14:10 +0200
commite21b283d6713794fb0a415a9313943867812884d (patch)
treec8bbf2a910b01bb4ab50a83e824ae71094d3fba3 /source3/winbindd
parent138b58bcec67e4a45cfa28213fc667504755a894 (diff)
downloadsamba-e21b283d6713794fb0a415a9313943867812884d.tar.gz
samba-e21b283d6713794fb0a415a9313943867812884d.tar.bz2
samba-e21b283d6713794fb0a415a9313943867812884d.zip
dbwrap: wait for tdb2 change notifies in smbd, nmbd and winbindd
metze (This used to be commit 64450cc1e441355aa8925b7183e90872eeab20b1)
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c
index dbfd397f8b..ff9bbf1c24 100644
--- a/source3/winbindd/winbindd.c
+++ b/source3/winbindd/winbindd.c
@@ -1102,6 +1102,8 @@ int main(int argc, char **argv, char **envp)
DEBUG(0,("winbindd version %s started.\n", SAMBA_VERSION_STRING));
DEBUGADD(0,("%s\n", COPYRIGHT_STARTUP_MESSAGE));
+ db_tdb2_setup_messaging(NULL, false);
+
if (!reload_services_file()) {
DEBUG(0, ("error opening config file\n"));
exit(1);
@@ -1188,6 +1190,9 @@ int main(int argc, char **argv, char **envp)
exit(1);
}
+ /* get broadcast messages */
+ claim_connection(NULL,"",FLAG_MSG_GENERAL|FLAG_MSG_DBWRAP);
+
/* React on 'smbcontrol winbindd reload-config' in the same way
as to SIGHUP signal */
messaging_register(winbind_messaging_context(), NULL,
@@ -1214,6 +1219,8 @@ int main(int argc, char **argv, char **envp)
MSG_WINBIND_DUMP_DOMAIN_LIST,
winbind_msg_dump_domain_list);
+ db_tdb2_setup_messaging(winbind_messaging_context(), true);
+
netsamlogon_cache_init(); /* Non-critical */
/* clear the cached list of trusted domains */