diff options
author | Sumit Bose <sbose@redhat.com> | 2014-11-27 13:42:19 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-12-02 11:44:29 +0100 |
commit | b7088215501c99e40ae71d1c57e0b789bbae2c87 (patch) | |
tree | 7d5d186611caf2bcfa169de054db5b07c474e086 | |
parent | 2bf1cbffaac3b4bc0bd736493c985ca865092805 (diff) | |
download | sssd-b7088215501c99e40ae71d1c57e0b789bbae2c87.tar.gz sssd-b7088215501c99e40ae71d1c57e0b789bbae2c87.tar.xz sssd-b7088215501c99e40ae71d1c57e0b789bbae2c87.zip |
krb5: do not fail if checking the old ccache failed
https://fedorahosted.org/sssd/ticket/2510
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
-rw-r--r-- | Makefile.am | 1 | ||||
-rw-r--r-- | src/providers/krb5/krb5_child.c | 7 |
2 files changed, 6 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index d63675dfc..b9c25f906 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2522,6 +2522,7 @@ krb5_child_SOURCES = \ src/util/signal.c \ src/util/strtonum.c \ src/util/become_user.c \ + src/util/util_errors.c \ src/sss_client/common.c \ $(NULL) krb5_child_CFLAGS = \ diff --git a/src/providers/krb5/krb5_child.c b/src/providers/krb5/krb5_child.c index ec22665b5..5bda1cfc1 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 |