From: Joseph Sutton Date: Wed, 4 Oct 2023 22:07:48 +0000 (+1300) Subject: s4:kdc: Declare ‘auth_entry’ to be of type ‘samba_kdc_entry_pac’ X-Git-Tag: tevent-0.16.0~114 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e3953e18aef4203ed30f2d1fc7a76e130429e5dd;p=thirdparty%2Fsamba.git s4:kdc: Declare ‘auth_entry’ to be of type ‘samba_kdc_entry_pac’ Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source4/kdc/pac-glue.c b/source4/kdc/pac-glue.c index 906133b84af..020ca52a344 100644 --- a/source4/kdc/pac-glue.c +++ b/source4/kdc/pac-glue.c @@ -2605,11 +2605,11 @@ krb5_error_code samba_kdc_update_pac(TALLOC_CTX *mem_ctx, * if one is present. */ if (!is_tgs && authn_policy_restrictions_present(server->server_policy)) { - const struct samba_kdc_entry *auth_entry = NULL; + struct samba_kdc_entry_pac auth_entry; const struct auth_user_info_dc *auth_user_info_dc = NULL; if (delegated_proxy.entry != NULL) { - auth_entry = delegated_proxy.entry; + auth_entry = delegated_proxy; code = samba_kdc_get_user_info_dc(tmp_ctx, context, @@ -2621,14 +2621,14 @@ krb5_error_code samba_kdc_update_pac(TALLOC_CTX *mem_ctx, goto done; } } else { - auth_entry = client.entry; + auth_entry = client; auth_user_info_dc = user_info_dc_const; } code = samba_kdc_allowed_to_authenticate_to(mem_ctx, samdb, lp_ctx, - auth_entry, + auth_entry.entry, auth_user_info_dc, server, server_audit_info_out,