summaryrefslogtreecommitdiff
path: root/source3/nmbd/nmbd.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/nmbd/nmbd.c')
-rw-r--r--source3/nmbd/nmbd.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c
index 0349445317..01fdbbc5a4 100644
--- a/source3/nmbd/nmbd.c
+++ b/source3/nmbd/nmbd.c
@@ -847,6 +847,8 @@ static bool open_sockets(bool isdaemon, int port)
DEBUG(0,("nmbd version %s started.\n", SAMBA_VERSION_STRING));
DEBUGADD(0,("%s\n", COPYRIGHT_STARTUP_MESSAGE));
+ db_tdb2_setup_messaging(NULL, false);
+
if ( !reload_nmbd_services(False) )
return(-1);
@@ -898,6 +900,10 @@ static bool open_sockets(bool isdaemon, int port)
}
pidfile_create("nmbd");
+
+ /* get broadcast messages */
+ claim_connection(NULL,"",FLAG_MSG_GENERAL|FLAG_MSG_DBWRAP);
+
messaging_register(nmbd_messaging_context(), NULL,
MSG_FORCE_ELECTION, nmbd_message_election);
#if 0
@@ -912,6 +918,8 @@ static bool open_sockets(bool isdaemon, int port)
messaging_register(nmbd_messaging_context(), NULL,
MSG_SEND_PACKET, msg_nmbd_send_packet);
+ db_tdb2_setup_messaging(nmbd_messaging_context(), true);
+
TimeInit();
DEBUG( 3, ( "Opening sockets %d\n", global_nmb_port ) );