s4:auth_sam: is_local_name
authorStefan Metzmacher <metze@samba.org>
Tue, 9 Jan 2018 08:24:11 +0000 (09:24 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 29 Oct 2019 13:33:03 +0000 (14:33 +0100)
source4/auth/ntlm/auth_sam.c

index fb88cb87f66801f38fa085c5bd0b60ab9f8135cd..cdee110d83c2f095c4edff56c137e4138f68dfea 100644 (file)
@@ -776,6 +776,12 @@ static NTSTATUS authsam_want_check(struct auth_method_context *ctx,
         * Now we handle the AD DC case...
         */
 
+       if (is_local_name) {
+               DBG_DEBUG("%s is one of my local names (DC)\n",
+                         effective_domain);
+               return NT_STATUS_NO_SUCH_USER;
+       }
+
        is_my_domain = lpcfg_is_my_domain_or_realm(ctx->auth_ctx->lp_ctx,
                                                   effective_domain);
        if (is_my_domain) {