]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:kdc: let samba_kdc_update_pac() use samba_kdc_entry_pac_valid_principal() to check...
authorStefan Metzmacher <metze@samba.org>
Wed, 19 Feb 2025 12:35:51 +0000 (13:35 +0100)
committerRalph Boehme <slow@samba.org>
Sat, 22 Feb 2025 22:06:39 +0000 (22:06 +0000)
This might not be needed, but it's more consistent.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source4/kdc/pac-glue.c

index e58c0d290ccd8d9a8aefaabe117fdf219c2fa55e..f9072c4247bb90fc8e4606906f29fe59a51634e6 100644 (file)
@@ -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,