From 6da3d7025bfb9e6f307671e07fb9b925d58cecff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 31 May 2007 16:45:21 +0000 Subject: [PATCH] More logging for pk-init client mismatch. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20736 ec53bebd-3082-4978-b11e-865c3cabbd6b --- kdc/pkinit.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/kdc/pkinit.c b/kdc/pkinit.c index 4a6319008..84d3e16f6 100644 --- a/kdc/pkinit.c +++ b/kdc/pkinit.c @@ -1414,10 +1414,17 @@ _kdc_pk_check_client(krb5_context context, return 0; } + krb5_set_error_string(context, + "PKINIT no matching principals for %s", + *subject_name); + + kdc_log(context, config, 5, + "PKINIT no matching principals for %s", + *subject_name); + free(*subject_name); *subject_name = NULL; - krb5_set_error_string(context, "PKINIT no matching principals"); return KRB5_KDC_ERR_CLIENT_NAME_MISMATCH; }