summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-08 14:20:48 +0200
committerVolker Lendecke <vl@samba.org>2010-08-08 16:03:24 +0200
commit51c47a330257c58e8c3b5db197df07cf3bf7d9a1 (patch)
treefa0d73d3de79a5df028f02938773ad1729f5fadb /source3/rpc_server
parentae8619f703d3ee7d639a79afbcfbd3dd66845c45 (diff)
downloadsamba-51c47a330257c58e8c3b5db197df07cf3bf7d9a1.tar.gz
samba-51c47a330257c58e8c3b5db197df07cf3bf7d9a1.tar.bz2
samba-51c47a330257c58e8c3b5db197df07cf3bf7d9a1.zip
s3: Lift the smbd_messaging_context from netr_set_machine_account_password
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_netlog_nt.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_netlog_nt.c b/source3/rpc_server/srv_netlog_nt.c
index b04e3e8871..b3e54050d4 100644
--- a/source3/rpc_server/srv_netlog_nt.c
+++ b/source3/rpc_server/srv_netlog_nt.c
@@ -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;