diff options
author | Isaac Boukris <iboukris@gmail.com> | 2019-10-24 18:53:34 +0300 |
---|---|---|
committer | Isaac Boukris <iboukris@sn-devel-184> | 2019-11-19 14:48:41 +0000 |
commit | e8015d8a3485092e12d610e565c8c4ee2be937b6 (patch) | |
tree | dc61825c031b108d23d03b6bf758000a0c566adb /source4/kdc | |
parent | ad9016d579aa3f6d53c656fd539d821ccfbf592f (diff) | |
download | samba-e8015d8a3485092e12d610e565c8c4ee2be937b6.tar.gz |
kdc/db-glue: do not fetch single DES keys from db
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>
Diffstat (limited to 'source4/kdc')
-rw-r--r-- | source4/kdc/db-glue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/kdc/db-glue.c b/source4/kdc/db-glue.c index f62a633c6c7..023ae7b580d 100644 --- a/source4/kdc/db-glue.c +++ b/source4/kdc/db-glue.c @@ -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 */ |