summaryrefslogtreecommitdiffstats
path: root/src/providers/ipa/ipa_access.c
diff options
context:
space:
mode:
authorJan Zeleny <jzeleny@redhat.com>2011-11-04 13:16:47 -0400
committerStephen Gallagher <sgallagh@redhat.com>2011-11-29 14:21:08 -0500
commit6fb75e297bf7fc83e3db1f5ae8560624656ef319 (patch)
tree3c7fe79f6ffb5ab3c5403f71a5a08adbb09d5d3a /src/providers/ipa/ipa_access.c
parent6d99c0f5616969a999d78248565a47b18d40d472 (diff)
downloadsssd-6fb75e297bf7fc83e3db1f5ae8560624656ef319.tar.gz
sssd-6fb75e297bf7fc83e3db1f5ae8560624656ef319.tar.xz
sssd-6fb75e297bf7fc83e3db1f5ae8560624656ef319.zip
Add ipa_hbac_support_srchost option to IPA provider
don't fetch all host groups if this option is false https://fedorahosted.org/sssd/ticket/1078
Diffstat (limited to 'src/providers/ipa/ipa_access.c')
-rw-r--r--src/providers/ipa/ipa_access.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/providers/ipa/ipa_access.c b/src/providers/ipa/ipa_access.c
index f02f64ed8..880f07d31 100644
--- a/src/providers/ipa/ipa_access.c
+++ b/src/providers/ipa/ipa_access.c
@@ -298,6 +298,10 @@ static int hbac_get_host_info_step(struct hbac_ctx *hbac_ctx)
hbac_ctx_sysdb(hbac_ctx),
sdap_id_op_handle(hbac_ctx->sdap_op),
hbac_ctx_sdap_id_ctx(hbac_ctx)->opts,
+ dp_opt_get_bool(hbac_ctx->ipa_options,
+ IPA_HBAC_SUPPORT_SRCHOST),
+ dp_opt_get_string(hbac_ctx->ipa_options,
+ IPA_HOSTNAME),
hbac_ctx->hbac_search_base);
if (req == NULL) {
DEBUG(1, ("Could not get host info\n"));