krb5_get_credentials() when there is no TGT in the ccache, in light of
r23909.
git-svn-id: svn://anonsvn.mit.edu/krb5/branches/iakerb@23911
dc483132-0cff-0310-8789-
dd5450dbe970
code = krb5_get_credentials(context, flags, cred->ccache,
&in_creds, out_creds);
- if (code == KRB5_NO_TKT_IN_RLM && cred->password.data != NULL) {
+ if (code == KRB5_CC_NOTFOUND && cred->password.data != NULL &&
+ !cred->iakerb_mech) {
krb5_creds tgt_creds;
memset(&tgt_creds, 0, sizeof(tgt_creds));
+ /* No TGT in the ccache, but we can get one with the password. */
code = krb5_get_init_creds_password(context, &tgt_creds,
in_creds.client,
cred->password.data,