From: Stefan Metzmacher Date: Wed, 19 Feb 2025 12:35:51 +0000 (+0100) Subject: s4:kdc: let samba_kdc_update_pac() use samba_kdc_entry_pac_valid_principal() to check... X-Git-Tag: tevent-0.17.0~652 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f5be1cd78d97f5741360b9ce31f5d787a9ebb60;p=thirdparty%2Fsamba.git s4:kdc: let samba_kdc_update_pac() use samba_kdc_entry_pac_valid_principal() to check delegated_proxy This might not be needed, but it's more consistent. Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- diff --git a/source4/kdc/pac-glue.c b/source4/kdc/pac-glue.c index e58c0d290cc..f9072c4247b 100644 --- a/source4/kdc/pac-glue.c +++ b/source4/kdc/pac-glue.c @@ -2794,7 +2794,7 @@ krb5_error_code samba_kdc_update_pac(TALLOC_CTX *mem_ctx, struct samba_kdc_entry_pac auth_entry; const struct auth_user_info_dc *auth_user_info_dc = NULL; - if (delegated_proxy.entry != NULL) { + if (samba_kdc_entry_pac_valid_principal(delegated_proxy)) { auth_entry = delegated_proxy; code = samba_kdc_get_user_info_dc(tmp_ctx,