summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-08 14:19:53 +0200
committerVolker Lendecke <vl@samba.org>2010-08-08 16:03:24 +0200
commitae8619f703d3ee7d639a79afbcfbd3dd66845c45 (patch)
tree8d1f41688707100816764899410d73a43c94224d /source3
parent7850496fe79c3e60a7dd87629a25b054e7bf3439 (diff)
downloadsamba-ae8619f703d3ee7d639a79afbcfbd3dd66845c45.tar.gz
samba-ae8619f703d3ee7d639a79afbcfbd3dd66845c45.tar.bz2
samba-ae8619f703d3ee7d639a79afbcfbd3dd66845c45.zip
s3: Lift the smbd_messaging_context from get_md4pw
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_netlog_nt.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/rpc_server/srv_netlog_nt.c b/source3/rpc_server/srv_netlog_nt.c
index 393d2b70fa..b04e3e8871 100644
--- a/source3/rpc_server/srv_netlog_nt.c
+++ b/source3/rpc_server/srv_netlog_nt.c
@@ -584,7 +584,9 @@ static NTSTATUS samr_find_machine_account(TALLOC_CTX *mem_ctx,
******************************************************************/
static NTSTATUS get_md4pw(struct samr_Password *md4pw, const char *mach_acct,
- enum netr_SchannelType sec_chan_type, struct dom_sid *sid)
+ enum netr_SchannelType sec_chan_type,
+ struct dom_sid *sid,
+ struct messaging_context *msg_ctx)
{
NTSTATUS status;
TALLOC_CTX *mem_ctx;
@@ -629,8 +631,7 @@ static NTSTATUS get_md4pw(struct samr_Password *md4pw, const char *mach_acct,
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;
@@ -875,7 +876,7 @@ NTSTATUS _netr_ServerAuthenticate3(struct pipes_struct *p,
status = get_md4pw(&mach_pwd,
r->in.account_name,
r->in.secure_channel_type,
- &sid);
+ &sid, p->msg_ctx);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0,("%s: failed to get machine password for "
"account %s: %s\n",