diff options
author | Volker Lendecke <vl@samba.org> | 2017-03-13 08:14:00 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2017-03-24 11:57:08 +0100 |
commit | c6531b9df8ba20d1f5472a8d578a87a6d102b453 (patch) | |
tree | 445d5e514a6a71ed32556d1b663f84c764a6ac5f /source3/rpc_server | |
parent | 7f78cea66f812ea428dbce010b6a3eced2fab294 (diff) | |
download | samba-c6531b9df8ba20d1f5472a8d578a87a6d102b453.tar.gz |
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 <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/netlogon/srv_netlog_nt.c | 11 |
1 files changed, 9 insertions, 2 deletions
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. */ |