dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone

Blame SOURCES/0065-LDAP-Use-FQDN-when-linking-parent-LDAP-groups.patch

b2d430
From 8798dbf0af2850c5775e0d50165d70b17a031050 Mon Sep 17 00:00:00 2001
b2d430
From: Jakub Hrozek <jhrozek@redhat.com>
b2d430
Date: Wed, 3 Aug 2016 13:18:51 +0200
b2d430
Subject: [PATCH 65/74] LDAP: Use FQDN when linking parent LDAP groups
b2d430
MIME-Version: 1.0
b2d430
Content-Type: text/plain; charset=UTF-8
b2d430
Content-Transfer-Encoding: 8bit
b2d430
b2d430
Resolves:
b2d430
    https://fedorahosted.org/sssd/ticket/3093
b2d430
b2d430
Because we compare the list of LDAP names with the list of sysdb names,
b2d430
we need to qualify the list of LDAP names before running the diff.
b2d430
b2d430
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
b2d430
---
b2d430
 src/providers/ldap/sdap_async_initgroups.c | 2 +-
b2d430
 1 file changed, 1 insertion(+), 1 deletion(-)
b2d430
b2d430
diff --git a/src/providers/ldap/sdap_async_initgroups.c b/src/providers/ldap/sdap_async_initgroups.c
b2d430
index cc63dff781338e33a9802f97d98174fce2167b4b..82c708c226bf1a645ff5a395947dfdbad71e0f1f 100644
b2d430
--- a/src/providers/ldap/sdap_async_initgroups.c
b2d430
+++ b/src/providers/ldap/sdap_async_initgroups.c
b2d430
@@ -2080,7 +2080,7 @@ rfc2307bis_group_memberships_build(hash_entry_t *item, void *user_data)
b2d430
     }
b2d430
 
b2d430
     if (group->parents_count > 0) {
b2d430
-        ret = sysdb_attrs_primary_name_list(mstate->dom, tmp_ctx,
b2d430
+        ret = sysdb_attrs_primary_fqdn_list(mstate->dom, tmp_ctx,
b2d430
                             group->ldap_parents, group->parents_count,
b2d430
                             mstate->opts->group_map[SDAP_AT_GROUP_NAME].name,
b2d430
                             &ldap_parents_names_list);
b2d430
-- 
b2d430
2.4.11
b2d430