From c18f62ad6790564168c963b7d8dd399219ad4daa Mon Sep 17 00:00:00 2001 From: Pavel Březina Date: Fri, 14 Dec 2012 14:19:44 +0100 Subject: sudo: do full refresh when data provider is back online 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. --- src/providers/ldap/sdap_sudo.h | 3 +++ 1 file changed, 3 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 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 { -- cgit