summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/sdap_sudo.h
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2012-12-14 14:19:44 +0100
committerJakub Hrozek <jhrozek@redhat.com>2012-12-18 19:55:32 +0100
commitc18f62ad6790564168c963b7d8dd399219ad4daa (patch)
tree6fff97354ee3c02ea3470890ead6d0b1c5860f40 /src/providers/ldap/sdap_sudo.h
parentbc90c44b2f9d0a1b6b7921aa75d2efbf3408232a (diff)
downloadsssd-c18f62ad6790564168c963b7d8dd399219ad4daa.tar.gz
sssd-c18f62ad6790564168c963b7d8dd399219ad4daa.tar.xz
sssd-c18f62ad6790564168c963b7d8dd399219ad4daa.zip
sudo: do full refresh when data provider is back online1.9.2-49
https://fedorahosted.org/sssd/ticket/1689 Add a online callback if the first full refresh fails due to the provider beeing offline so we can perform the refresh as soon as possible.
Diffstat (limited to 'src/providers/ldap/sdap_sudo.h')
-rw-r--r--src/providers/ldap/sdap_sudo.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/providers/ldap/sdap_sudo.h b/src/providers/ldap/sdap_sudo.h
index 6384c7b81..e2764b90c 100644
--- a/src/providers/ldap/sdap_sudo.h
+++ b/src/providers/ldap/sdap_sudo.h
@@ -31,7 +31,10 @@ struct sdap_sudo_ctx {
bool use_host_filter;
bool full_refresh_done;
+ bool full_refresh_in_progress;
int full_refresh_attempts;
+ struct be_cb *first_refresh_online_cb;
+ struct tevent_req *first_refresh_timer;
};
enum sdap_sudo_refresh_type {