diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-09-23 23:00:45 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-09-24 18:30:18 +0200 |
commit | 5feb9beb0586ac97a85acec31c19acfff314fdbd (patch) | |
tree | 1689318793d743cbc2615819607dfb7bafd4a66f /src/providers | |
parent | 46d2643b60231ce8634c4683107649c07d3226a9 (diff) | |
download | sssd-5feb9beb0586ac97a85acec31c19acfff314fdbd.tar.gz sssd-5feb9beb0586ac97a85acec31c19acfff314fdbd.tar.bz2 sssd-5feb9beb0586ac97a85acec31c19acfff314fdbd.zip |
KRB5: Recover gracefully if the ccache file could not be reused
https://fedorahosted.org/sssd/ticket/1384
Diffstat (limited to 'src/providers')
-rw-r--r-- | src/providers/krb5/krb5_utils.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/providers/krb5/krb5_utils.c b/src/providers/krb5/krb5_utils.c index 8b15fc35..774f62da 100644 --- a/src/providers/krb5/krb5_utils.c +++ b/src/providers/krb5/krb5_utils.c @@ -721,8 +721,9 @@ cc_file_check_existing(const char *location, uid_t uid, ret = cc_residual_is_used(uid, filename, SSS_KRB5_TYPE_FILE, &active); if (ret != EOK) { - DEBUG(SSSDBG_OP_FAILURE, ("Could not check if ccache is active\n")); - return ret; + DEBUG(SSSDBG_OP_FAILURE, ("Could not check if ccache is active. " + "Will create a new one.\n")); + active = false; } kerr = krb5_init_context(&context); @@ -890,8 +891,9 @@ cc_dir_check_existing(const char *location, uid_t uid, ret = cc_residual_is_used(uid, dir, SSS_KRB5_TYPE_DIR, &active); talloc_free(tmp); if (ret != EOK) { - DEBUG(SSSDBG_CRIT_FAILURE, ("Could not check if ccache is active\n")); - return ret; + DEBUG(SSSDBG_OP_FAILURE, ("Could not check if ccache is active. " + "Will create a new one.\n")); + active = false; } krberr = krb5_init_context(&context); |