diff options
author | Volker Lendecke <vl@samba.org> | 2010-08-08 14:20:48 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-08-08 16:03:24 +0200 |
commit | 51c47a330257c58e8c3b5db197df07cf3bf7d9a1 (patch) | |
tree | fa0d73d3de79a5df028f02938773ad1729f5fadb | |
parent | ae8619f703d3ee7d639a79afbcfbd3dd66845c45 (diff) | |
download | samba-51c47a330257c58e8c3b5db197df07cf3bf7d9a1.tar.gz samba-51c47a330257c58e8c3b5db197df07cf3bf7d9a1.tar.bz2 samba-51c47a330257c58e8c3b5db197df07cf3bf7d9a1.zip |
s3: Lift the smbd_messaging_context from netr_set_machine_account_password
-rw-r--r-- | source3/rpc_server/srv_netlog_nt.c | 6 |
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; |