From 2c48897ed1700725d3cd07a4a106e40f62d76c47 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Fri, 29 Jan 2021 09:42:01 +0100 Subject: [PATCH] Fix cert_request for KDC cert ca_kdc_check() expects an API object, not an LDAP connection. Issue was introduced in commit 8f4abf7bc1607fc44f528b8a443b69cb82269e69. See: https://pagure.io/freeipa/issue/6739 Fixes: https://pagure.io/freeipa/issue/8686 Signed-off-by: Christian Heimes Reviewed-By: Rob Crittenden --- ipaserver/plugins/cert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipaserver/plugins/cert.py b/ipaserver/plugins/cert.py index 0b8712113..f9bbdb22c 100644 --- a/ipaserver/plugins/cert.py +++ b/ipaserver/plugins/cert.py @@ -875,7 +875,7 @@ class cert_request(Create, BaseCertMethod, VirtualCommand): "with subject alt name '%s'.") % name) if not bypass_caacl: if principal_type == KRBTGT: - ca_kdc_check(ldap, alt_principal.hostname) + ca_kdc_check(self.api, alt_principal.hostname) else: caacl_check(alt_principal, ca, profile_id)