summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/sdap_sudo.h
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2012-06-26 13:00:10 +0200
committerStephen Gallagher <sgallagh@redhat.com>2012-06-29 11:37:18 -0400
commit5f73b623fc72e3b9b3590420825f30e618b4d4dd (patch)
tree50ee93c69f4420691806750eabb1887eba1ab331 /src/providers/ldap/sdap_sudo.h
parent9af677f3bae3a7c1386867e4d42970555b3d6b9a (diff)
downloadsssd-5f73b623fc72e3b9b3590420825f30e618b4d4dd.tar.gz
sssd-5f73b623fc72e3b9b3590420825f30e618b4d4dd.tar.xz
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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/providers/ldap/sdap_sudo.h b/src/providers/ldap/sdap_sudo.h
index 252772717..d2c5e80f5 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)"