]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libcli/auth: return INVALID_PARAMETER for DES in netlogon_creds_{de,en}crypt_samlogon...
authorStefan Metzmacher <metze@samba.org>
Mon, 28 Oct 2024 15:54:48 +0000 (16:54 +0100)
committerDouglas Bagnall <dbagnall@samba.org>
Wed, 30 Oct 2024 23:08:36 +0000 (23:08 +0000)
For the NetlogonGenericInformation case we want an error instead of no
encryption if only DES was negotiated...

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
libcli/auth/credentials.c

index d9ba349ef70860eccc140a47dfd621b22bcc7001..93a537c2b01a6d22ab17f84436163bc7b88d2d89 100644 (file)
@@ -1120,6 +1120,7 @@ static NTSTATUS netlogon_creds_crypt_samlogon_logon(struct netlogon_creds_Creden
                        }
                } else {
                        /* Using DES to verify kerberos tickets makes no sense */
+                       return NT_STATUS_INVALID_PARAMETER;
                }
                break;
        }