]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
kdc/db-glue: do not fetch single DES keys from db
authorIsaac Boukris <iboukris@gmail.com>
Thu, 24 Oct 2019 15:53:34 +0000 (18:53 +0300)
committerIsaac Boukris <iboukris@sn-devel-184>
Tue, 19 Nov 2019 14:48:41 +0000 (14:48 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14202

Signed-off-by: Isaac Boukris <iboukris@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/kdc/db-glue.c

index f62a633c6c78ea82082410b28ace380d33664092..023ae7b580d672377ea127866d54e378b9b36508 100644 (file)
@@ -359,10 +359,10 @@ static krb5_error_code samba_kdc_message2entry_keys(krb5_context context,
 
        /* If UF_USE_DES_KEY_ONLY has been set, then don't allow use of the newer enc types */
        if (userAccountControl & UF_USE_DES_KEY_ONLY) {
-               supported_enctypes = ENC_CRC32|ENC_RSA_MD5;
+               supported_enctypes = 0;
        } else {
                /* Otherwise, add in the default enc types */
-               supported_enctypes |= ENC_CRC32 | ENC_RSA_MD5 | ENC_RC4_HMAC_MD5;
+               supported_enctypes |= ENC_RC4_HMAC_MD5;
        }
 
        /* Is this the krbtgt or a RODC krbtgt */