From c6531b9df8ba20d1f5472a8d578a87a6d102b453 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 13 Mar 2017 08:14:00 +0100 Subject: netlogond3: Call make_auth_context_subsystem directly Soon we'll call specific methods here BUG: https://bugzilla.samba.org/show_bug.cgi?id=2976 Signed-off-by: Volker Lendecke Reviewed-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- source3/rpc_server/netlogon/srv_netlog_nt.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'source3/rpc_server') diff --git a/source3/rpc_server/netlogon/srv_netlog_nt.c b/source3/rpc_server/netlogon/srv_netlog_nt.c index 005bd030bac..09feb130a87 100644 --- a/source3/rpc_server/netlogon/srv_netlog_nt.c +++ b/source3/rpc_server/netlogon/srv_netlog_nt.c @@ -1586,13 +1586,20 @@ static NTSTATUS _netr_LogonSamLogon_base(struct pipes_struct *p, { const char *wksname = nt_workstation; const char *workgroup = lp_workgroup(); + bool ok; - status = make_auth_context_fixed(talloc_tos(), &auth_context, - logon->network->challenge); + status = make_auth_context_subsystem(talloc_tos(), + &auth_context); if (!NT_STATUS_IS_OK(status)) { return status; } + ok = auth3_context_set_challenge( + auth_context, logon->network->challenge, "fixed"); + if (!ok) { + return NT_STATUS_NO_MEMORY; + } + /* For a network logon, the workstation name comes in with two * backslashes in the front. Strip them if they are there. */ -- cgit v1.2.1