dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone

Blame SOURCES/0071-views-do-not-require-overrideDN-in-grous-when-LOCAL-.patch

6cf099
From 58c6f691bed13095a48b4587e5baa7bb4dc7dae5 Mon Sep 17 00:00:00 2001
6cf099
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina@redhat.com>
6cf099
Date: Thu, 17 Sep 2015 11:34:40 +0200
6cf099
Subject: [PATCH 71/73] views: do not require overrideDN in grous when LOCAL
6cf099
 view is set
6cf099
6cf099
Resolves:
6cf099
https://fedorahosted.org/sssd/ticket/2790
6cf099
6cf099
Reviewed-by: Sumit Bose <sbose@redhat.com>
6cf099
---
6cf099
 src/db/sysdb_views.c | 6 ++++++
6cf099
 1 file changed, 6 insertions(+)
6cf099
6cf099
diff --git a/src/db/sysdb_views.c b/src/db/sysdb_views.c
6cf099
index 1db6c892de9e4764b673608166830800744b1148..82b1f187dbc6aab032403854714474301ae3324c 100644
6cf099
--- a/src/db/sysdb_views.c
6cf099
+++ b/src/db/sysdb_views.c
6cf099
@@ -1337,6 +1337,12 @@ errno_t sysdb_add_group_member_overrides(struct sss_domain_info *domain,
6cf099
         override_dn_str = ldb_msg_find_attr_as_string(member_obj->msgs[0],
6cf099
                                                       SYSDB_OVERRIDE_DN, NULL);
6cf099
         if (override_dn_str == NULL) {
6cf099
+            if (is_local_view(domain->view_name)) {
6cf099
+                /* LOCAL view doesn't have to have overrideDN specified. */
6cf099
+                ret = EOK;
6cf099
+                goto done;
6cf099
+            }
6cf099
+
6cf099
             DEBUG(SSSDBG_CRIT_FAILURE,
6cf099
                   "Missing override DN for objext [%s].\n",
6cf099
                   ldb_dn_get_linearized(member_obj->msgs[0]->dn));
6cf099
-- 
6cf099
2.4.3
6cf099