s3:rpc_server/netlogon: remove unused send_sync_message()
authorStefan Metzmacher <metze@samba.org>
Tue, 13 Dec 2011 09:34:19 +0000 (10:34 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 13 Dec 2011 11:36:36 +0000 (12:36 +0100)
metze

source3/rpc_server/netlogon/srv_netlog_nt.c

index 26b92c8618acf7a620d56b9ac089a50001b23ad8..05651aae4152f25952c1dca58c682ef050f966ca 100644 (file)
@@ -84,16 +84,6 @@ WERROR _netr_LogonControl(struct pipes_struct *p,
        return _netr_LogonControl2Ex(p, &l);
 }
 
-/****************************************************************************
-Send a message to smbd to do a sam synchronisation
-**************************************************************************/
-
-static void send_sync_message(struct messaging_context *msg_ctx)
-{
-        DEBUG(3, ("sending sam synchronisation message\n"));
-        message_send_all(msg_ctx, MSG_SMB_SAM_SYNC, NULL, 0, NULL);
-}
-
 /*************************************************************************
  _netr_LogonControl2
  *************************************************************************/
@@ -389,10 +379,6 @@ WERROR _netr_LogonControl2Ex(struct pipes_struct *p,
                return WERR_UNKNOWN_LEVEL;
        }
 
-        if (lp_server_role() == ROLE_DOMAIN_BDC) {
-                send_sync_message(p->msg_ctx);
-       }
-
        return WERR_OK;
 }