From 9cdf010ca6c8b03d9f7cc338e8253219e0e877b0 Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Tue, 30 May 2023 16:28:05 +0300 Subject: [PATCH] ipa-kdb: skip verification of PAC full checksum MIT Kerberos KDC code will do verification of the PAC full checksum buffers, we don't need to process them. This change only applies to newer MIT Kerberos version which have this buffer type defined, hence using #ifdef to protect the use of the define. This should have no functional difference. Related: https://pagure.io/freeipa/issue/9371 Signed-off-by: Alexander Bokovoy Reviewed-By: Julien Rische --- daemons/ipa-kdb/ipa_kdb_mspac.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/daemons/ipa-kdb/ipa_kdb_mspac.c b/daemons/ipa-kdb/ipa_kdb_mspac.c index 8da754387..83b507cb4 100644 --- a/daemons/ipa-kdb/ipa_kdb_mspac.c +++ b/daemons/ipa-kdb/ipa_kdb_mspac.c @@ -2367,7 +2367,10 @@ krb5_error_code ipadb_common_verify_pac(krb5_context context, for (i = 0; i < num_buffers; i++) { if (types[i] == KRB5_PAC_SERVER_CHECKSUM || types[i] == KRB5_PAC_PRIVSVR_CHECKSUM || - types[i] == KRB5_PAC_CLIENT_INFO) { +#ifdef KRB5_PAC_FULL_CHECKSUM + types[i] == KRB5_PAC_FULL_CHECKSUM || +#endif + types[i] == KRB5_PAC_CLIENT_INFO) { continue; }