Hi,

this patch fixes a typo in the IPA AD related code, to look up the
Global Catalog via DNS the forest name should be used and not the name
of the currently domain.

bye,
Sumit
From 67beb22df5a9c382e763ccb6a239554beb3eb848 Mon Sep 17 00:00:00 2001
From: Sumit Bose <[email protected]>
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
---
 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 
7d8b3d3fbc6b501a6362ec1aeaf2c82e32c7906a..33c76cad926e4cef67e0a097dccb9efe877089f0
 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.1.0

_______________________________________________
sssd-devel mailing list
[email protected]
https://lists.fedorahosted.org/admin/lists/[email protected]

Reply via email to