s3: Lift the smbd_messaging_context from netr_set_machine_account_password
authorVolker Lendecke <vl@samba.org>
Sun, 8 Aug 2010 12:20:48 +0000 (14:20 +0200)
committerVolker Lendecke <vl@samba.org>
Sun, 8 Aug 2010 14:03:24 +0000 (16:03 +0200)
source3/rpc_server/srv_netlog_nt.c

index b04e3e8871b2912681357d6c4c48e4012dfd09a4..b3e54050d47cd57476c6b9529a5768a64c2471e8 100644 (file)
@@ -1020,6 +1020,7 @@ static NTSTATUS netr_creds_server_step_check(struct pipes_struct *p,
 
 static NTSTATUS netr_set_machine_account_password(TALLOC_CTX *mem_ctx,
                                                  struct auth_serversupplied_info *server_info,
+                                                 struct messaging_context *msg_ctx,
                                                  const char *account_name,
                                                  struct samr_Password *nt_hash)
 {
@@ -1034,8 +1035,7 @@ static NTSTATUS netr_set_machine_account_password(TALLOC_CTX *mem_ctx,
        ZERO_STRUCT(user_handle);
 
        status = rpc_pipe_open_internal(mem_ctx, &ndr_table_samr.syntax_id,
-                                       server_info,
-                                       smbd_messaging_context(),
+                                       server_info, msg_ctx,
                                        &cli);
        if (!NT_STATUS_IS_OK(status)) {
                goto out;
@@ -1139,6 +1139,7 @@ NTSTATUS _netr_ServerPasswordSet(struct pipes_struct *p,
 
        status = netr_set_machine_account_password(p->mem_ctx,
                                                   p->server_info,
+                                                  p->msg_ctx,
                                                   creds->account_name,
                                                   r->in.new_password);
        return status;
@@ -1185,6 +1186,7 @@ NTSTATUS _netr_ServerPasswordSet2(struct pipes_struct *p,
 
        status = netr_set_machine_account_password(p->mem_ctx,
                                                   p->server_info,
+                                                  p->msg_ctx,
                                                   creds->account_name,
                                                   &nt_hash);
        return status;