summaryrefslogtreecommitdiff
path: root/src/providers/ldap/sdap_sudo_cache.c
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-05 16:52:44 +0200
commit2c7ab882bcc64c9d2bc16091d10a56073c472775 (patch)
tree60c10de5576dbfbd74326e568ab8cfe63cc39922 /src/providers/ldap/sdap_sudo_cache.c
parent1d45113cd45f8509d1088f941da932c29dd8ab2a (diff)
downloadsssd-2c7ab882bcc64c9d2bc16091d10a56073c472775.tar.gz
sssd-2c7ab882bcc64c9d2bc16091d10a56073c472775.tar.bz2
sssd-2c7ab882bcc64c9d2bc16091d10a56073c472775.zip
sudo: skip rule on error instead of failing completely
https://fedorahosted.org/sssd/ticket/2031
Diffstat (limited to 'src/providers/ldap/sdap_sudo_cache.c')
-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 3c438b93..db51d1c3 100644
--- a/src/providers/ldap/sdap_sudo_cache.c
+++ b/src/providers/ldap/sdap_sudo_cache.c
@@ -135,7 +135,9 @@ sdap_save_native_sudorule_list(TALLOC_CTX *mem_ctx,
domain, 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 */