diff options
author | Jan Zeleny <jzeleny@redhat.com> | 2011-11-04 13:16:47 -0400 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-08-21 12:12:35 +0200 |
commit | 49c06899c6b8e06fa0c371dbd8a16ead32c651d9 (patch) | |
tree | 535b5ee29705c3d943e54609498aaedd5bf815b5 /src/providers/ipa/ipa_access.c | |
parent | ee0a1b3f94846fb19fbe3b72304d7ea2c989669c (diff) | |
download | sssd-49c06899c6b8e06fa0c371dbd8a16ead32c651d9.tar.gz sssd-49c06899c6b8e06fa0c371dbd8a16ead32c651d9.tar.xz sssd-49c06899c6b8e06fa0c371dbd8a16ead32c651d9.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.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/providers/ipa/ipa_access.c b/src/providers/ipa/ipa_access.c index 7232c5355..be7f954d2 100644 --- a/src/providers/ipa/ipa_access.c +++ b/src/providers/ipa/ipa_access.c @@ -355,6 +355,10 @@ static int hbac_get_host_info_step(struct hbac_ctx *hbac_ctx) hbac_ctx_be(hbac_ctx)->domain, 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")); |