From: Volker Lendecke Date: Sun, 12 Feb 2017 18:20:07 +0000 (+0100) Subject: auth_ntdomain3: Correctly handle !authoritative X-Git-Tag: tdb-1.3.13~595 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=59b580f6c72d4d296a22c95fc1ef572ed2c696b0;p=thirdparty%2Fsamba.git auth_ntdomain3: Correctly handle !authoritative Signed-off-by: Volker Lendecke Reviewed-by: Andrew Bartlett --- 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,