Store the canonical client princ in ipropd-slave
Otherwise we risk storing a name with the referral (empty) realm name, which will then cause various knock-on effects, such as thinking that the start_realm is "", and failing to find matching credentials in the ccache.
This commit is contained in:

committed by
Viktor Dukhovni

parent
840dc40574
commit
316e0d2184
@@ -150,7 +150,7 @@ get_creds(krb5_context context, const char *keytab_str,
|
||||
ret = krb5_cc_new_unique(context, krb5_cc_type_memory, NULL, cache);
|
||||
if(ret) krb5_err(context, 1, ret, "krb5_cc_new_unique");
|
||||
|
||||
ret = krb5_cc_initialize(context, *cache, client);
|
||||
ret = krb5_cc_initialize(context, *cache, creds.client);
|
||||
if(ret) krb5_err(context, 1, ret, "krb5_cc_initialize");
|
||||
|
||||
ret = krb5_cc_store_cred(context, *cache, &creds);
|
||||
|
Reference in New Issue
Block a user