summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2013-07-26 12:25:01 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-08-06 16:19:08 +0200
commita810814bf7ef80f48f413cabafbe85e0ab903122 (patch)
treee03790c94eb4a1eae4775a7ba1a92833b94f810d /src/providers/ldap
parente4c8fd085da8132db082de616675061018fdc5a2 (diff)
downloadsssd-a810814bf7ef80f48f413cabafbe85e0ab903122.tar.gz
sssd-a810814bf7ef80f48f413cabafbe85e0ab903122.tar.xz
sssd-a810814bf7ef80f48f413cabafbe85e0ab903122.zip
sudo: skip rule on error instead of failing completely
https://fedorahosted.org/sssd/ticket/2031
Diffstat (limited to 'src/providers/ldap')
-rw-r--r--src/providers/ldap/sdap_sudo_cache.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_sudo_cache.c b/src/providers/ldap/sdap_sudo_cache.c
index 499db02f6..39ebbed2e 100644
--- a/src/providers/ldap/sdap_sudo_cache.c
+++ b/src/providers/ldap/sdap_sudo_cache.c
@@ -132,7 +132,9 @@ sdap_save_native_sudorule_list(TALLOC_CTX *mem_ctx,
ret = sdap_save_native_sudorule(tmp_ctx, sysdb_ctx, map, replies[i],
cache_timeout, now, &usn_value);
if (ret != EOK) {
- goto fail;
+ DEBUG(SSSDBG_CRIT_FAILURE, ("Failed to save sudo rule, "
+ "will continue with next...\n"));
+ continue;
}
/* find highest usn */