summaryrefslogtreecommitdiffstats
path: root/src/providers/ipa/ipa_subdomains_server.c
diff options
context:
space:
mode:
authorMichal Židek <mzidek@redhat.com>2017-04-11 19:56:37 +0200
committerLukas Slebodnik <lslebodn@redhat.com>2017-05-02 13:01:21 +0200
commit4c49edbd8df651b1737c59459637962c117212c6 (patch)
tree1635a92e4dca6e371030ee02aa13337d3591d9ec /src/providers/ipa/ipa_subdomains_server.c
parent2644a8ba6b89846150acaa508cb0bdd8bce2f41e (diff)
downloadsssd-4c49edbd8df651b1737c59459637962c117212c6.tar.gz
sssd-4c49edbd8df651b1737c59459637962c117212c6.tar.xz
sssd-4c49edbd8df651b1737c59459637962c117212c6.zip
SDAP: Fix handling of search bases
We were rewriting the sdap_domain's search bases for only the first sdap_domain in the list, which does not work for subdomains. Also when search bases were already initialized in sdap_domain_subdom_add, we should only rewrite them when they were explicitly set in sssd.conf. Resolves: https://pagure.io/SSSD/sssd/issue/3351 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/providers/ipa/ipa_subdomains_server.c')
-rw-r--r--src/providers/ipa/ipa_subdomains_server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ipa/ipa_subdomains_server.c b/src/providers/ipa/ipa_subdomains_server.c
index e8ee30392..b02ea67af 100644
--- a/src/providers/ipa/ipa_subdomains_server.c
+++ b/src/providers/ipa/ipa_subdomains_server.c
@@ -332,7 +332,7 @@ ipa_ad_ctx_new(struct be_ctx *be_ctx,
return EFAULT;
}
- ret = ad_set_search_bases(ad_options->id);
+ ret = ad_set_search_bases(ad_options->id, sdom);
if (ret != EOK) {
DEBUG(SSSDBG_OP_FAILURE, "Cannot initialize AD search bases\n");
talloc_free(ad_options);