diff options
author | Pavel Březina <pbrezina@redhat.com> | 2012-12-14 14:19:44 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-12-18 17:15:22 +0100 |
commit | dcb712782ed81cd19fc5d9a5dab37e50294d6f2e (patch) | |
tree | 2ddf4925f6009cddde3b8c273350a1b3e8a0b268 /src/providers/ldap/sdap_sudo.h | |
parent | 5860e321d82d007a5b7f4a1ff9a3893156e22b19 (diff) | |
download | sssd-dcb712782ed81cd19fc5d9a5dab37e50294d6f2e.tar.gz sssd-dcb712782ed81cd19fc5d9a5dab37e50294d6f2e.tar.bz2 sssd-dcb712782ed81cd19fc5d9a5dab37e50294d6f2e.zip |
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.
Diffstat (limited to 'src/providers/ldap/sdap_sudo.h')
-rw-r--r-- | src/providers/ldap/sdap_sudo.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/providers/ldap/sdap_sudo.h b/src/providers/ldap/sdap_sudo.h index 6384c7b8..e2764b90 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 { |