(krb5_kt_get_entry): tell what enctype the caller requested to provide
the user with a glue what the caller was asking for. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14569 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -329,9 +329,11 @@ krb5_kt_get_entry(krb5_context context,
|
|||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
char princ[256], kt_name[256], kvno_str[25];
|
char princ[256], kt_name[256], kvno_str[25];
|
||||||
|
char *enctype_str = NULL;
|
||||||
|
|
||||||
krb5_unparse_name_fixed (context, principal, princ, sizeof(princ));
|
krb5_unparse_name_fixed (context, principal, princ, sizeof(princ));
|
||||||
krb5_kt_get_name (context, id, kt_name, sizeof(kt_name));
|
krb5_kt_get_name (context, id, kt_name, sizeof(kt_name));
|
||||||
|
krb5_enctype_to_string(context, enctype, &enctype_str);
|
||||||
|
|
||||||
if (kvno)
|
if (kvno)
|
||||||
snprintf(kvno_str, sizeof(kvno_str), "(kvno %d)", kvno);
|
snprintf(kvno_str, sizeof(kvno_str), "(kvno %d)", kvno);
|
||||||
@@ -339,10 +341,12 @@ krb5_kt_get_entry(krb5_context context,
|
|||||||
kvno_str[0] = '\0';
|
kvno_str[0] = '\0';
|
||||||
|
|
||||||
krb5_set_error_string (context,
|
krb5_set_error_string (context,
|
||||||
"failed to find %s%s in keytab %s",
|
"failed to find %s%s in keytab %s (%s)",
|
||||||
princ,
|
princ,
|
||||||
kvno_str,
|
kvno_str,
|
||||||
kt_name);
|
kt_name,
|
||||||
|
enctype_str ? enctype_str : "unknown enctype");
|
||||||
|
free(enctype_str);
|
||||||
return KRB5_KT_NOTFOUND;
|
return KRB5_KT_NOTFOUND;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user