mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-28 09:06:44 -06:00
Fix MS-PAC checks when using s4u2proxy
We were using the wrong principal in the s4u2proxy case. Fixes: https://fedorahosted.org/freeipa/ticket/2504
This commit is contained in:
parent
b55c98f1c5
commit
c007ac0d70
@ -762,11 +762,13 @@ krb5_error_code ipadb_sign_authdata(krb5_context context,
|
||||
krb5_pac pac = NULL;
|
||||
krb5_data pac_data;
|
||||
|
||||
/* Prefer canonicalised name from client entry */
|
||||
if (client != NULL) {
|
||||
ks_client_princ = client->princ;
|
||||
} else {
|
||||
/* When using s4u2proxy client_princ actually refers to the proxied user
|
||||
* while client->princ to the proxy service asking for the TGS on behalf
|
||||
* of the proxied user. So always use client_princ in preference */
|
||||
if (client_princ != NULL) {
|
||||
ks_client_princ = client_princ;
|
||||
} else {
|
||||
ks_client_princ = client->princ;
|
||||
}
|
||||
|
||||
is_as_req = ((flags & KRB5_KDB_FLAG_CLIENT_REFERRALS_ONLY) != 0);
|
||||
|
Loading…
Reference in New Issue
Block a user