dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone

Blame SOURCES/0085-IPA-Include-SYSDB_OBJECTCATEGORY-not-OBJECTCLASS-in-.patch

9f2ebf
From 0f707b5f99f4cc17b61026e7a0e7787e776fae87 Mon Sep 17 00:00:00 2001
9f2ebf
From: Jakub Hrozek <jhrozek@redhat.com>
9f2ebf
Date: Wed, 6 Dec 2017 15:45:13 +0100
9f2ebf
Subject: [PATCH 85/86] IPA: Include SYSDB_OBJECTCATEGORY, not OBJECTCLASS in
9f2ebf
 cache search results
9f2ebf
MIME-Version: 1.0
9f2ebf
Content-Type: text/plain; charset=UTF-8
9f2ebf
Content-Transfer-Encoding: 8bit
9f2ebf
9f2ebf
The function get_object_from_cache() returns an ldb_message that is
9f2ebf
passed to apply_subdomain_homedir() which expects SYSDB_OBJECTCATEGORY
9f2ebf
to be present in the message, otherwise it errors out.
9f2ebf
9f2ebf
However, get_object_from_cache() was reading only SYSDB_OBJECTCLASS.
9f2ebf
9f2ebf
This patch changes get_object_from_cache() to ready
9f2ebf
SYSDB_OBJECTCATEGORY.
9f2ebf
9f2ebf
Resolves:
9f2ebf
https://pagure.io/SSSD/sssd/issue/3599
9f2ebf
9f2ebf
Reviewed-by: Fabiano FidĂȘncio <fidencio@redhat.com>
9f2ebf
(cherry picked from commit dc49e07a0dbbbf3d69d09a7c6f236d82c86c7def)
9f2ebf
---
9f2ebf
 src/providers/ipa/ipa_subdomains_id.c | 2 +-
9f2ebf
 1 file changed, 1 insertion(+), 1 deletion(-)
9f2ebf
9f2ebf
diff --git a/src/providers/ipa/ipa_subdomains_id.c b/src/providers/ipa/ipa_subdomains_id.c
9f2ebf
index 2ba9813a44b4d914d9c2ef7a1a7504546f52954c..d40671086854f9c1a3f8bc7fc711009298dc31c8 100644
9f2ebf
--- a/src/providers/ipa/ipa_subdomains_id.c
9f2ebf
+++ b/src/providers/ipa/ipa_subdomains_id.c
9f2ebf
@@ -965,7 +965,7 @@ errno_t get_object_from_cache(TALLOC_CTX *mem_ctx,
9f2ebf
     const char *attrs[] = { SYSDB_NAME,
9f2ebf
                             SYSDB_UIDNUM,
9f2ebf
                             SYSDB_SID_STR,
9f2ebf
-                            SYSDB_OBJECTCLASS,
9f2ebf
+                            SYSDB_OBJECTCATEGORY,
9f2ebf
                             SYSDB_UUID,
9f2ebf
                             SYSDB_GHOST,
9f2ebf
                             SYSDB_HOMEDIR,
9f2ebf
-- 
9f2ebf
2.14.3
9f2ebf