From fb67530ec34740a18f56ff56614898d2bdaee36f Mon Sep 17 00:00:00 2001 From: Pavel Březina Date: Tue, 23 Oct 2012 14:09:50 +0200 Subject: sudo: do not fail if usn value is zero but full refresh is completed https://fedorahosted.org/sssd/ticket/1596 In case that LDAP server contains zero sudo rules, the full refresh completes succussfully and stores current USN value (= 0). But then smart refresh will fail because it takes USN=0 as invalid value. --- src/providers/ldap/sdap_sudo.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/providers/ldap/sdap_sudo.h') diff --git a/src/providers/ldap/sdap_sudo.h b/src/providers/ldap/sdap_sudo.h index d2c5e80f..f9988d61 100644 --- a/src/providers/ldap/sdap_sudo.h +++ b/src/providers/ldap/sdap_sudo.h @@ -29,6 +29,8 @@ struct sdap_sudo_ctx { bool include_netgroups; bool include_regexp; bool use_host_filter; + + bool full_refresh_done; }; /* Common functions from ldap_sudo.c */ -- cgit