summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/sdap_sudo.h
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2012-10-23 14:09:50 +0200
committerJakub Hrozek <jhrozek@redhat.com>2012-11-05 00:14:04 +0100
commitcae527076156c1b4357c270105a4d667641afb96 (patch)
tree7365b702836e976a15eafe082d7ae32b1f662ae8 /src/providers/ldap/sdap_sudo.h
parentc99b23a9d67eec293480cd3d9ab1bd53ebf62566 (diff)
downloadsssd-cae527076156c1b4357c270105a4d667641afb96.tar.gz
sssd-cae527076156c1b4357c270105a4d667641afb96.tar.xz
sssd-cae527076156c1b4357c270105a4d667641afb96.zip
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.
Diffstat (limited to 'src/providers/ldap/sdap_sudo.h')
-rw-r--r--src/providers/ldap/sdap_sudo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/providers/ldap/sdap_sudo.h b/src/providers/ldap/sdap_sudo.h
index d2c5e80f5..f9988d611 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 */