From b4dd0867c48e74703f8f7afbf9d5634238dffc1c Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Jan 12 2017 18:07:14 +0000 Subject: KRB5: Advise the user to inspect the krb5_child.log if the child fails with a System Error It's often not clear to admins where to look further if the krb5_child fails with a generic error. This patch just adds a DEBUG message advising the admin to look into the krb5_child.log for more information. Related: https://fedorahosted.org/sssd/ticket/2955 Reviewed-by: Sumit Bose Reviewed-by: Michal Židek --- diff --git a/src/providers/krb5/krb5_auth.c b/src/providers/krb5/krb5_auth.c index a5ecb24..bdd8e24 100644 --- a/src/providers/krb5/krb5_auth.c +++ b/src/providers/krb5/krb5_auth.c @@ -1023,6 +1023,9 @@ static void krb5_auth_done(struct tevent_req *subreq) goto done; default: + DEBUG(SSSDBG_IMPORTANT_INFO, + "The krb5_child process returned an error. Please inspect the " + "krb5_child.log file or the journal for more information\n"); state->pam_status = PAM_SYSTEM_ERR; state->dp_err = DP_ERR_OK; ret = EOK;