]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix iprop with fallback
authorGreg Hudson <ghudson@mit.edu>
Mon, 28 Mar 2022 23:06:29 +0000 (19:06 -0400)
committerGreg Hudson <ghudson@mit.edu>
Tue, 24 May 2022 23:12:21 +0000 (19:12 -0400)
commit0794ad7614fba5827388c8ea6efff574c9a4ada1
treefb5ac8bcb908f498749d5d70b898767154917669
parent549c2c7f23cce98a5af9815a71d2fc1c04c9fbf9
Fix iprop with fallback

kpropd produces a client principal name with
krb5_sname_to_principal(), then converts it to a string to pass as the
client principal to kadm5_init_with_skey().  This conversion loses the
name type, so no canonicalization is performed by libkadm5.

Commit dcb79089276624d7ddf44e08d35bd6d7d7e557d2 addresses this problem
for kadmin -k by looking for the referral realm, but kpropd sets the
realm in the krb5_sname_to_principal() result.  Add an additional
check for a two-component principal with kiprop as the first
component.

(cherry picked from commit cd61bdcd6339b10e6cf3feb9f6cb369213e8d7fc)

ticket: 9056
version_fixed: 1.20
src/lib/kadm5/clnt/client_init.c