From 59b580f6c72d4d296a22c95fc1ef572ed2c696b0 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 12 Feb 2017 19:20:07 +0100 Subject: [PATCH] auth_ntdomain3: Correctly handle !authoritative Signed-off-by: Volker Lendecke Reviewed-by: Andrew Bartlett --- source3/auth/auth_domain.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source3/auth/auth_domain.c b/source3/auth/auth_domain.c index d663923cfae..b3ff51806e3 100644 --- a/source3/auth/auth_domain.c +++ b/source3/auth/auth_domain.c @@ -229,6 +229,10 @@ static NTSTATUS domain_client_validate(TALLOC_CTX *mem_ctx, if (NT_STATUS_EQUAL(nt_status, NT_STATUS_UNSUCCESSFUL)) { nt_status = NT_STATUS_NO_LOGON_SERVERS; } + if (NT_STATUS_EQUAL(nt_status, NT_STATUS_NO_SUCH_USER) && + (authoritative == 0)) { + nt_status = NT_STATUS_NOT_IMPLEMENTED; + } } else { nt_status = make_server_info_info3(mem_ctx, user_info->client.account_name, -- 2.34.1