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

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