diff options
author | Stefan Metzmacher <metze@samba.org> | 2017-03-17 09:43:59 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2017-03-24 11:57:09 +0100 |
commit | 65d5f845ed61641f42be614bb78391cba87e762a (patch) | |
tree | ba59eacd32e9dfa568c622f7f2acc306bb333f46 /source3/rpc_server | |
parent | 111a6bfc035f133474d2cb764c5a489140eb5295 (diff) | |
download | samba-65d5f845ed61641f42be614bb78391cba87e762a.tar.gz |
auth3: let auth_check_ntlm_password() return pauthoritative
BUG: https://bugzilla.samba.org/show_bug.cgi?id=2976
Signed-off-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 | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/source3/rpc_server/netlogon/srv_netlog_nt.c b/source3/rpc_server/netlogon/srv_netlog_nt.c index 4c438022fc0..38d7bda9822 100644 --- a/source3/rpc_server/netlogon/srv_netlog_nt.c +++ b/source3/rpc_server/netlogon/srv_netlog_nt.c @@ -1682,7 +1682,8 @@ static NTSTATUS _netr_LogonSamLogon_base(struct pipes_struct *p, status = auth_check_ntlm_password(p->mem_ctx, auth_context, user_info, - &server_info); + &server_info, + r->out.authoritative); } TALLOC_FREE(auth_context); @@ -1694,15 +1695,6 @@ static NTSTATUS _netr_LogonSamLogon_base(struct pipes_struct *p, /* Check account and password */ if (!NT_STATUS_IS_OK(status)) { - /* If we don't know what this domain is, we need to - indicate that we are not authoritative. This - allows the client to decide if it needs to try - a local user. Fix by jpjanosi@us.ibm.com, #2976 */ - if ( NT_STATUS_EQUAL(status, NT_STATUS_NO_SUCH_USER) - && !strequal(nt_domain, get_global_sam_name()) - && !is_trusted_domain(nt_domain) ) - *r->out.authoritative = false; /* We are not authoritative */ - TALLOC_FREE(server_info); return status; } |