krb5_magic magic;
const krb5_db_entry *server;
krb5_const_principal proxy;
+ krb5_const_principal client;
} kdb_check_allowed_to_delegate_req;
#endif /* KRB5_KDB5_EXT__ */
static krb5_error_code
check_allowed_to_delegate_to(krb5_context context,
+ krb5_const_principal client,
const krb5_db_entry *server,
krb5_const_principal proxy)
{
req.server = server;
req.proxy = proxy;
+ req.client = client;
req_data.data = (void *)&req;
req_data.length = sizeof(req);
/* Backend policy check */
errcode = check_allowed_to_delegate_to(kdc_context,
- server, proxy_princ);
+ t2enc->client,
+ server,
+ proxy_princ);
if (errcode) {
*status = "NOT_ALLOWED_TO_DELEGATE";
return errcode;