dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone

Blame SOURCES/0132-KRB5-Advise-the-user-to-inspect-the-krb5_child.log-i.patch

bb7cd1
From cf1bb5464609f5873685406f9e09e43de8738e42 Mon Sep 17 00:00:00 2001
bb7cd1
From: Jakub Hrozek <jhrozek@redhat.com>
bb7cd1
Date: Mon, 22 May 2017 09:55:12 +0200
bb7cd1
Subject: [PATCH 132/135] KRB5: Advise the user to inspect the krb5_child.log
bb7cd1
 if the child doesn't return a valid response
bb7cd1
MIME-Version: 1.0
bb7cd1
Content-Type: text/plain; charset=UTF-8
bb7cd1
Content-Transfer-Encoding: 8bit
bb7cd1
bb7cd1
If the child returns a runtime error, it is often not clear from the
bb7cd1
domain debug logs what to do next. This patch adds a DEBUG message that
bb7cd1
tells the admin to look into the krb5_child.log
bb7cd1
bb7cd1
Resolves:
bb7cd1
https://pagure.io/SSSD/sssd/issue/2955
bb7cd1
bb7cd1
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
bb7cd1
(cherry picked from commit 7410f735b64937e0c2401c09b5cffc9c78b11849)
bb7cd1
---
bb7cd1
 src/providers/krb5/krb5_auth.c | 3 +++
bb7cd1
 1 file changed, 3 insertions(+)
bb7cd1
bb7cd1
diff --git a/src/providers/krb5/krb5_auth.c b/src/providers/krb5/krb5_auth.c
bb7cd1
index 2faf18d17a735476c20f9cc27b15be4a39cadc5c..894bd41bde031ac33187bfa3b14202e9429a9198 100644
bb7cd1
--- a/src/providers/krb5/krb5_auth.c
bb7cd1
+++ b/src/providers/krb5/krb5_auth.c
bb7cd1
@@ -890,6 +890,9 @@ static void krb5_auth_done(struct tevent_req *subreq)
bb7cd1
                         state->be_ctx->domain->pwd_expiration_warning,
bb7cd1
                         &res;;
bb7cd1
     if (ret) {
bb7cd1
+        DEBUG(SSSDBG_IMPORTANT_INFO,
bb7cd1
+              "The krb5_child process returned an error. Please inspect the "
bb7cd1
+              "krb5_child.log file or the journal for more information\n");
bb7cd1
         DEBUG(SSSDBG_OP_FAILURE, "Could not parse child response [%d]: %s\n",
bb7cd1
               ret, strerror(ret));
bb7cd1
         goto done;
bb7cd1
-- 
bb7cd1
2.9.3
bb7cd1