dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone

Blame SOURCES/0129-KRB5-Relax-DEBUG-message.patch

905b4d
From cf944e48215fa55bbc268e291aff11adb2bba4aa Mon Sep 17 00:00:00 2001
905b4d
From: Jakub Hrozek <jhrozek@redhat.com>
905b4d
Date: Fri, 28 Nov 2014 19:56:27 +0100
905b4d
Subject: [PATCH 129/130] KRB5: Relax DEBUG message
905b4d
905b4d
Reviewed-by: Sumit Bose <sbose@redhat.com>
905b4d
---
905b4d
 src/providers/krb5/krb5_child.c | 7 +++++--
905b4d
 1 file changed, 5 insertions(+), 2 deletions(-)
905b4d
905b4d
diff --git a/src/providers/krb5/krb5_child.c b/src/providers/krb5/krb5_child.c
905b4d
index 1ce1220751a338cb2a2e5f204107b376000a4e3e..8f23346a67d4d2467a4d1869fd298ec4d6f68e92 100644
905b4d
--- a/src/providers/krb5/krb5_child.c
905b4d
+++ b/src/providers/krb5/krb5_child.c
905b4d
@@ -1672,8 +1672,11 @@ static krb5_error_code get_tgt_times(krb5_context ctx, const char *ccname,
905b4d
     mcred.client = client_principal;
905b4d
 
905b4d
     krberr = krb5_cc_retrieve_cred(ctx, ccache, 0, &mcred, &cred);
905b4d
-    if (krberr != 0) {
905b4d
-        DEBUG(SSSDBG_CRIT_FAILURE, "krb5_cc_retrieve_cred failed.\n");
905b4d
+    if (krberr == KRB5_FCC_NOFILE) {
905b4d
+        DEBUG(SSSDBG_TRACE_LIBS, "FAST ccache must be recreated\n");
905b4d
+    } else if (krberr != 0) {
905b4d
+        DEBUG(SSSDBG_CRIT_FAILURE, "krb5_cc_retrieve_cred failed\n");
905b4d
+        KRB5_CHILD_DEBUG(SSSDBG_CRIT_FAILURE, krberr);
905b4d
         krberr = 0;
905b4d
         goto done;
905b4d
     }
905b4d
-- 
905b4d
1.9.3
905b4d