diff options
author | Pavel Březina <pbrezina@redhat.com> | 2012-06-26 13:00:10 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-06-29 11:37:18 -0400 |
commit | 5f73b623fc72e3b9b3590420825f30e618b4d4dd (patch) | |
tree | 50ee93c69f4420691806750eabb1887eba1ab331 /src/providers/ldap/sdap_sudo.h | |
parent | 9af677f3bae3a7c1386867e4d42970555b3d6b9a (diff) | |
download | sssd-5f73b623fc72e3b9b3590420825f30e618b4d4dd.tar.gz sssd-5f73b623fc72e3b9b3590420825f30e618b4d4dd.tar.bz2 sssd-5f73b623fc72e3b9b3590420825f30e618b4d4dd.zip |
sudo ldap provider: load host filter configuration on init
We need to load host information during provider initialization.
Currently it loads only values from configuration files, but it is
implemented as an asynchrounous request as it will later try to
autodetect these settings (which will need to contact DNS).
Diffstat (limited to 'src/providers/ldap/sdap_sudo.h')
-rw-r--r-- | src/providers/ldap/sdap_sudo.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/providers/ldap/sdap_sudo.h b/src/providers/ldap/sdap_sudo.h index 25277271..d2c5e80f 100644 --- a/src/providers/ldap/sdap_sudo.h +++ b/src/providers/ldap/sdap_sudo.h @@ -69,6 +69,15 @@ int sdap_sudo_timer_recv(TALLOC_CTX *mem_ctx, struct tevent_req *req, struct tevent_req **_subreq); +/* host info */ +struct tevent_req * sdap_sudo_get_hostinfo_send(TALLOC_CTX *mem_ctx, + struct sdap_options *opts, + struct be_ctx *be_ctx); + +int sdap_sudo_get_hostinfo_recv(TALLOC_CTX *mem_ctx, + struct tevent_req *req, + char ***hostnames, char ***ip_addr); + /* (&(objectClass=sudoRole)(|(cn=defaults)(sudoUser=ALL)%s)) */ #define SDAP_SUDO_FILTER_USER "(&(objectClass=%s)(|(%s=%s)(%s=ALL)%s))" #define SDAP_SUDO_FILTER_CLASS "(objectClass=%s)" |