]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
CVE-2020-25717: s4:auth/ntlm: make sure auth_check_password() defaults to r->out...
authorStefan Metzmacher <metze@samba.org>
Mon, 4 Oct 2021 15:29:34 +0000 (17:29 +0200)
committerJule Anger <janger@samba.org>
Tue, 9 Nov 2021 19:45:32 +0000 (19:45 +0000)
We need to make sure that temporary failures don't trigger a fallback
to the local SAM that silently ignores the domain name part for users.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14556

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/auth/ntlm/auth.c

index e54eb7719f5793a8fe7246fb5a0659c8f30f6f3b..4c66f2c23cb61c82ac422d25dd4068fc1133f581 100644 (file)
@@ -169,6 +169,11 @@ _PUBLIC_ NTSTATUS auth_check_password(struct auth4_context *auth_ctx,
        /*TODO: create a new event context here! */
        ev = auth_ctx->event_ctx;
 
+       /*
+        * We are authoritative by default
+        */
+       *pauthoritative = 1;
+
        subreq = auth_check_password_send(mem_ctx,
                                          ev,
                                          auth_ctx,