From e3953e18aef4203ed30f2d1fc7a76e130429e5dd Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Thu, 5 Oct 2023 11:07:48 +1300 Subject: [PATCH] =?utf8?q?s4:kdc:=20Declare=20=E2=80=98auth=5Fentry?= =?utf8?q?=E2=80=99=20to=20be=20of=20type=20=E2=80=98samba=5Fkdc=5Fentry?= =?utf8?q?=5Fpac=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- source4/kdc/pac-glue.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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, -- 2.47.3