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