ccec5b8
From ac1636acadcf8e799a93d799140e8ff2d533f313 Mon Sep 17 00:00:00 2001
ccec5b8
From: Jakub Hrozek <jhrozek@redhat.com>
ccec5b8
Date: Tue, 23 Jan 2018 11:23:37 +0100
ccec5b8
Subject: [PATCH] SDAP: Improve a DEBUG message about GC detection
ccec5b8
MIME-Version: 1.0
ccec5b8
Content-Type: text/plain; charset=UTF-8
ccec5b8
Content-Transfer-Encoding: 8bit
ccec5b8
ccec5b8
It was not entirely clear what the message means. We should improve the
ccec5b8
debug message to make it clear that all or none attributes should be
ccec5b8
replicated to the Global Catalog.
ccec5b8
ccec5b8
This patch can be reverted once we fix
ccec5b8
https://pagure.io/SSSD/sssd/issue/3538 and only use the GC to look up
ccec5b8
the entry DN, not the entry itself.
ccec5b8
ccec5b8
Reviewed-by: Fabiano FidĂȘncio <fidencio@redhat.com>
ccec5b8
(cherry picked from commit 2d43eaf43540c375d39c5e1c2482595e919fb4df)
ccec5b8
---
ccec5b8
 src/providers/ldap/sdap_async.c | 6 +++++-
ccec5b8
 1 file changed, 5 insertions(+), 1 deletion(-)
ccec5b8
ccec5b8
diff --git a/src/providers/ldap/sdap_async.c b/src/providers/ldap/sdap_async.c
ccec5b8
index 76cfce207..1e77b1c3c 100644
ccec5b8
--- a/src/providers/ldap/sdap_async.c
ccec5b8
+++ b/src/providers/ldap/sdap_async.c
ccec5b8
@@ -2720,7 +2720,11 @@ static void sdap_gc_posix_check_done(struct tevent_req *subreq)
ccec5b8
 
ccec5b8
     /* Positive hit is definitive, no need to search other bases */
ccec5b8
     if (state->has_posix == true) {
ccec5b8
-        DEBUG(SSSDBG_FUNC_DATA, "Server has POSIX attributes\n");
ccec5b8
+        DEBUG(SSSDBG_FUNC_DATA, "Server has POSIX attributes. Global Catalog will "
ccec5b8
+                                "be used for user and group lookups. Note that if "
ccec5b8
+                                "only a subset of POSIX attributes is present "
ccec5b8
+                                "in GC, the non-replicated attributes are "
ccec5b8
+                                "currently not read from the LDAP port\n");
ccec5b8
         tevent_req_done(req);
ccec5b8
         return;
ccec5b8
     }
ccec5b8
-- 
ccec5b8
2.14.3
ccec5b8