auth_ntdomain3: Correctly handle !authoritative
authorVolker Lendecke <vl@samba.org>
Sun, 12 Feb 2017 18:20:07 +0000 (19:20 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 10 Mar 2017 02:28:26 +0000 (03:28 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/auth/auth_domain.c

index d663923cfae03af8fb9118212ecdfe8cc4c4bc20..b3ff51806e37be017cdd8ce7dbf35573ca781bdc 100644 (file)
@@ -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,