diff options
author | Michal Židek <mzidek@redhat.com> | 2017-03-23 13:14:56 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2017-03-29 14:00:17 +0200 |
commit | a63d74f65db2db7389cd373cb37adcdaaa2d56ea (patch) | |
tree | 6be7d69c1593aba3bbcb0b473d518f3bf1f5286a /src/responder/common | |
parent | e0e038218580166648ac24f23180f0f4c2769d99 (diff) | |
download | sssd-a63d74f65db2db7389cd373cb37adcdaaa2d56ea.tar.gz sssd-a63d74f65db2db7389cd373cb37adcdaaa2d56ea.tar.xz sssd-a63d74f65db2db7389cd373cb37adcdaaa2d56ea.zip |
SUBDOMAINS: Allow use_fully_qualified_names for subdomains
Allow option use_fully_qualified_names in subdomain section.
This option was recently added to subdomain_inherit.
Resolves:
https://pagure.io/SSSD/sssd/issue/3337
Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>
Diffstat (limited to 'src/responder/common')
-rw-r--r-- | src/responder/common/responder_get_domains.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/responder/common/responder_get_domains.c b/src/responder/common/responder_get_domains.c index 0f39d107d..0f9c01214 100644 --- a/src/responder/common/responder_get_domains.c +++ b/src/responder/common/responder_get_domains.c @@ -126,7 +126,8 @@ get_next_domain_recv(TALLOC_CTX *mem_ctx, } /* ====== Iterate over all domains, searching for their subdomains ======= */ -static errno_t process_subdomains(struct sss_domain_info *dom); +static errno_t process_subdomains(struct sss_domain_info *dom, + struct confdb_ctx *confdb); static void set_time_of_last_request(struct resp_ctx *rctx); static errno_t check_last_request(struct resp_ctx *rctx, const char *hint); @@ -234,7 +235,7 @@ sss_dp_get_domains_process(struct tevent_req *subreq) goto fail; } - ret = process_subdomains(state->dom); + ret = process_subdomains(state->dom, state->rctx->cdb); if (ret != EOK) { DEBUG(SSSDBG_OP_FAILURE, "process_subdomains failed, " "trying next domain.\n"); @@ -270,7 +271,7 @@ fail: } static errno_t -process_subdomains(struct sss_domain_info *domain) +process_subdomains(struct sss_domain_info *domain, struct confdb_ctx *confdb) { int ret; @@ -288,7 +289,7 @@ process_subdomains(struct sss_domain_info *domain) /* Retrieve all subdomains of this domain from sysdb * and create their struct sss_domain_info representations */ - ret = sysdb_update_subdomains(domain); + ret = sysdb_update_subdomains(domain, confdb); if (ret != EOK) { DEBUG(SSSDBG_FUNC_DATA, "sysdb_update_subdomains failed.\n"); goto done; |