]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix iprop with fallback 1244/head
authorGreg Hudson <ghudson@mit.edu>
Mon, 28 Mar 2022 23:06:29 +0000 (19:06 -0400)
committerGreg Hudson <ghudson@mit.edu>
Tue, 12 Apr 2022 22:13:56 +0000 (18:13 -0400)
commitcd61bdcd6339b10e6cf3feb9f6cb369213e8d7fc
tree52f7b6b98392fb35dbddbe208280a0f9322ae99f
parentc3958cec43b598b25484b9805224c56f25f7a755
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.

ticket: 9056 (new)
tags: pullup
target_version: 1.20
src/lib/kadm5/clnt/client_init.c