More logging for pk-init client mismatch.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20736 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2007-05-31 16:45:21 +00:00
parent 605be10f65
commit 6da3d7025b

View File

@@ -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;
}