be more informative in pa-data error messages
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6991 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 1998, 1999 Kungliga Tekniska H<>gskolan
|
* Copyright (c) 1997-1999 Kungliga Tekniska H<>gskolan
|
||||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -499,10 +499,19 @@ as_rep(KDC_REQ *req,
|
|||||||
|
|
||||||
ret = hdb_enctype2key(context, client, enc_data.etype, &pa_key);
|
ret = hdb_enctype2key(context, client, enc_data.etype, &pa_key);
|
||||||
if(ret){
|
if(ret){
|
||||||
|
char *estr;
|
||||||
e_text = "No key matches pa-data";
|
e_text = "No key matches pa-data";
|
||||||
ret = KRB5KDC_ERR_PREAUTH_FAILED;
|
ret = KRB5KDC_ERR_PREAUTH_FAILED;
|
||||||
kdc_log(5, "No client key matching pa-data -- %s",
|
if(krb5_enctype_to_string(context, enc_data.etype, &estr))
|
||||||
client_name);
|
estr = NULL;
|
||||||
|
if(estr == NULL)
|
||||||
|
kdc_log(5, "No client key matching pa-data (%d) -- %s",
|
||||||
|
enc_data.etype, client_name);
|
||||||
|
else
|
||||||
|
kdc_log(5, "No client key matching pa-data (%s) -- %s",
|
||||||
|
estr, client_name);
|
||||||
|
free(estr);
|
||||||
|
|
||||||
free_EncryptedData(&enc_data);
|
free_EncryptedData(&enc_data);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user