From b7088215501c99e40ae71d1c57e0b789bbae2c87 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Thu, 27 Nov 2014 13:42:19 +0100 Subject: krb5: do not fail if checking the old ccache failed https://fedorahosted.org/sssd/ticket/2510 Reviewed-by: Jakub Hrozek --- src/providers/krb5/krb5_child.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/providers/krb5/krb5_child.c b/src/providers/krb5/krb5_child.c index ec22665b..5bda1cfc 100644 --- a/src/providers/krb5/krb5_child.c +++ b/src/providers/krb5/krb5_child.c @@ -34,6 +34,7 @@ #include "util/user_info_msg.h" #include "util/child_common.h" #include "util/find_uid.h" +#include "src/util/util_errors.h" #include "providers/dp_backend.h" #include "providers/krb5/krb5_auth.h" #include "providers/krb5/krb5_utils.h" @@ -2047,8 +2048,10 @@ static int k5c_ccache_setup(struct krb5_req *kr, uint32_t offline) ret = k5c_check_old_ccache(kr); if (ret != 0) { - DEBUG(SSSDBG_OP_FAILURE, "Cannot check old ccache\n"); - return ret; + DEBUG(SSSDBG_CRIT_FAILURE, "Cannot check old ccache [%s]: [%d][%s]. " \ + "Assuming old cache is invalid " \ + "and not used.\n", + kr->old_ccname, ret, sss_strerror(ret)); } /* Pre-creating the ccache must be done as root, otherwise we can't mkdir -- cgit