diff options
author | Fabiano FidĂȘncio <fidencio@redhat.com> | 2017-06-20 14:22:48 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2017-06-21 11:28:15 +0200 |
commit | fa2fc8a2908619031292eaf375eb1a510b8b2eba (patch) | |
tree | 2585a8120be8bfabac34af65cb2ef5ced35dd6e9 /src/responder | |
parent | 86526891366c4bc3e1ee861143b736d2670a6ba8 (diff) | |
download | sssd-fa2fc8a2908619031292eaf375eb1a510b8b2eba.tar.gz sssd-fa2fc8a2908619031292eaf375eb1a510b8b2eba.tar.xz sssd-fa2fc8a2908619031292eaf375eb1a510b8b2eba.zip |
DOMAIN: Add sss_domain_info_{get,set}_output_fqnames()
Let's avoid setting a domain's property directly from cr_domain code.
In order to do so, let's introduce a setter, which may help us in the
future whenever we decide to make sss_domain_info an opaque structure.
For completeness, a getter has also been introduced and used in the
usertools code.
Related:
https://pagure.io/SSSD/sssd/issue/3403
Signed-off-by: Fabiano FidĂȘncio <fidencio@redhat.com>
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/responder')
-rw-r--r-- | src/responder/common/cache_req/cache_req_domain.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/responder/common/cache_req/cache_req_domain.c b/src/responder/common/cache_req/cache_req_domain.c index bad4bf9a6..7b58f7c94 100644 --- a/src/responder/common/cache_req/cache_req_domain.c +++ b/src/responder/common/cache_req/cache_req_domain.c @@ -136,7 +136,7 @@ cache_req_domain_new_list_from_string_list(TALLOC_CTX *mem_ctx, * input is allowed by default. However, we really want to use * the fully qualified name as output in order to avoid * conflicts whith users who have the very same name. */ - cr_domain->domain->output_fqnames = true; + sss_domain_info_set_output_fqnames(cr_domain->domain, true); DLIST_ADD_END(cr_domains, cr_domain, struct cache_req_domain *); @@ -166,7 +166,7 @@ cache_req_domain_new_list_from_string_list(TALLOC_CTX *mem_ctx, * qualified name as output in order to avoid conflicts whith users * who have the very same name. */ if (resolution_order != NULL) { - cr_domain->domain->output_fqnames = true; + sss_domain_info_set_output_fqnames(cr_domain->domain, true); } DLIST_ADD_END(cr_domains, cr_domain, struct cache_req_domain *); |