extended error message indicating which principal was not found.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24448
dc483132-0cff-0310-8789-
dd5450dbe970
krb5_boolean similar;
int kvno_offset = 0;
int was_open;
+ char *princname;
kerror = KTLOCK(id);
if (kerror)
kerror = 0;
else if (found_wrong_kvno)
kerror = KRB5_KT_KVNONOTFOUND;
- else
+ else {
kerror = KRB5_KT_NOTFOUND;
+ if (krb5_unparse_name(context, principal, &princname) == 0) {
+ krb5_set_error_message(context, kerror, "No key table entry "
+ "found for %s", princname);
+ free(princname);
+ }
+ }
}
if (kerror) {
if (was_open == 0)