------------------------------------------------------------
revno: 626
revision-id: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Andrew Tridgell <[EMAIL PROTECTED]>
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);
 

Reply via email to