Rev 626: get_global_sam_sid has to come after we've started listening in http://samba.org/~tridge/3_0-ctdb

tridge at samba.org tridge at samba.org
Fri Sep 21 06:57:28 GMT 2007


------------------------------------------------------------
revno: 626
revision-id: tridge at samba.org-20070921065728-1a1mlz4oqsh332f7
parent: tridge at samba.org-20070921060834-hmbttsluzn3oxct7
committer: Andrew Tridgell <tridge at samba.org>
branch nick: s3-ctdb-tridge
timestamp: Fri 2007-09-21 16:57:28 +1000
message:
  get_global_sam_sid has to come after we've started listening
modified:
  source/smbd/server.c           server.c-20070210173807-1wjifrbwaz6xnmgl-1036
=== modified file 'source/smbd/server.c'
--- a/source/smbd/server.c	2007-08-19 21:46:32 +0000
+++ b/source/smbd/server.c	2007-09-21 06:57:28 +0000
@@ -361,6 +361,12 @@
 	   includes checking to see that smbd is listening. */
 	claim_connection(NULL,"",True,FLAG_MSG_GENERAL|FLAG_MSG_SMBD);
 
+	/* this also has to be done after we start listening */
+	if (!get_global_sam_sid()) {
+		DEBUG(0,("ERROR: Samba cannot create a SAM SID.\n"));
+		exit(1);
+	}
+
         /* Listen to messages */
 
         message_register(MSG_SMB_SAM_SYNC, msg_sam_sync, NULL);
@@ -1046,11 +1052,6 @@
 		exit(1);
 	}
 
-	if(!get_global_sam_sid()) {
-		DEBUG(0,("ERROR: Samba cannot create a SAM SID.\n"));
-		exit(1);
-	}
-
 	if (!session_init())
 		exit(1);
 



More information about the samba-cvs mailing list