]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
CVE-2020-25717: s3:auth: let auth3_generate_session_info_pac() forward the low level...
authorStefan Metzmacher <metze@samba.org>
Fri, 8 Oct 2021 17:57:18 +0000 (19:57 +0200)
committerJule Anger <janger@samba.org>
Mon, 8 Nov 2021 09:52:10 +0000 (10:52 +0100)
Mapping everything to ACCESS_DENIED makes it hard to debug problems,
which may happen because of our more restrictive behaviour in future.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14801
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>
source3/auth/auth_generic.c

index 8044e6d8af0b20e96fa8f075355d69a25a6f89d2..86585ad690cf533e8342bfecda5ca3cecdd24f2e 100644 (file)
@@ -166,7 +166,7 @@ static NTSTATUS auth3_generate_session_info_pac(struct auth4_context *auth_ctx,
        if (!NT_STATUS_IS_OK(status)) {
                DEBUG(1, ("Failed to map kerberos pac to server info (%s)\n",
                          nt_errstr(status)));
-               status = NT_STATUS_ACCESS_DENIED;
+               status = nt_status_squash(status);
                goto done;
        }