a NULL server principal to krb5_rd_req(). Without this the name
canonicalisation support in 1.7 was broken for GSS_C_BOTH
credentials, because cred->name would always be set.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22973
dc483132-0cff-0310-8789-
dd5450dbe970
}
if ((code = krb5_rd_req(context, &auth_context, &ap_req,
- cred->name ? cred->name->princ : NULL,
+ cred->default_identity ? NULL : cred->name->princ,
cred->keytab,
&ap_req_options,
&ticket))) {
cred->name = NULL;
cred->prerfc_mech = (req_old != 0);
cred->rfc_mech = (req_new != 0);
+ cred->default_identity = (desired_name == GSS_C_NO_NAME);
#ifndef LEAN_CLIENT
cred->keytab = NULL;
unsigned int prerfc_mech : 1;
unsigned int rfc_mech : 1;
unsigned int proxy_cred : 1;
+ unsigned int default_identity : 1;
/* keytab (accept) data */
krb5_keytab keytab;