From 8da71a9d5eebe7690b66fde8bfad195d5e3cc629 Mon Sep 17 00:00:00 2001 From: Pavel Březina Date: Jan 19 2016 13:33:53 +0000 Subject: SUDO: allow disabling full refresh This condition always disabled smart refresh when full refresh interval was set to zero and thus disabling periodic refresh functionality completelely. Reviewed-by: Sumit Bose --- diff --git a/src/providers/ldap/sdap_sudo_shared.c b/src/providers/ldap/sdap_sudo_shared.c index 0885054..9e9574b 100644 --- a/src/providers/ldap/sdap_sudo_shared.c +++ b/src/providers/ldap/sdap_sudo_shared.c @@ -55,7 +55,7 @@ sdap_sudo_ptask_setup_generic(struct be_ctx *be_ctx, DEBUG(SSSDBG_CONF_SETTINGS, "At least smart refresh needs to be " "enabled. Setting smart refresh interval to default value " "(%ld) seconds.\n", smart); - } else if (full <= smart) { + } else if (full > 0 && full <= smart) { /* In this case it does not make any sense to run smart refresh. */ smart = 0;