summaryrefslogtreecommitdiffstats
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-08 10:56:32 +0200
commit078586a74f99aa02a64545abd7fd085677fa424b (patch)
treefc5837568b4fa6639c76a91023e6710c5da94d78
parent82667ec6cedaf266d263c5e7c10228d7f7fd6364 (diff)
downloadsssd-078586a74f99aa02a64545abd7fd085677fa424b.tar.gz
sssd-078586a74f99aa02a64545abd7fd085677fa424b.tar.xz
sssd-078586a74f99aa02a64545abd7fd085677fa424b.zip
sudo: skip rule on error instead of failing completely
https://fedorahosted.org/sssd/ticket/2031
-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 */