Blob Blame History Raw
From 0a7c43151c362bf8e7276fc1d08c49cb91fdb005 Mon Sep 17 00:00:00 2001
From: Sumit Bose <sbose@redhat.com>
Date: Tue, 17 May 2016 11:54:10 +0200
Subject: [PATCH] IPA: use forest name when looking up the Global Catalog

Resolves https://fedorahosted.org/sssd/ticket/3015

Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
(cherry picked from commit 149174acae677d1e72a0da431bf0850d55f2ccb4)
---
 src/providers/ipa/ipa_subdomains_server.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/providers/ipa/ipa_subdomains_server.c b/src/providers/ipa/ipa_subdomains_server.c
index c561118946e2ba76b2b4076e5057b1b5c0075a41..b75266701904d8bd1723bc277ae96d407f90f30d 100644
--- a/src/providers/ipa/ipa_subdomains_server.c
+++ b/src/providers/ipa/ipa_subdomains_server.c
@@ -249,7 +249,7 @@ ipa_ad_ctx_new(struct be_ctx *be_ctx,
         DEBUG(SSSDBG_TRACE_ALL, "No extra attrs set.\n");
     }
 
-    gc_service_name = talloc_asprintf(ad_options, "%s%s", "gc_", subdom->name);
+    gc_service_name = talloc_asprintf(ad_options, "%s%s", "gc_", subdom->forest);
     if (gc_service_name == NULL) {
         talloc_free(ad_options);
         return ENOMEM;
-- 
2.4.11