summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Reichl <preichl@redhat.com>2014-08-21 19:03:08 +0100
committerJakub Hrozek <jhrozek@redhat.com>2014-09-08 19:03:54 +0200
commit4da27d52078497c5c095f4a4cd9975fe5c83c330 (patch)
tree512167bb406ff4095a61730592fd33645d49414e
parent0b6b4b7669b46d3d0b0ebefbc0e1621965444717 (diff)
downloadsssd-4da27d52078497c5c095f4a4cd9975fe5c83c330.tar.gz
sssd-4da27d52078497c5c095f4a4cd9975fe5c83c330.tar.xz
sssd-4da27d52078497c5c095f4a4cd9975fe5c83c330.zip
AD: process non-posix nested groups w/o tokenGroups
When initgr is performed for AD not supporting tokenGroups, do not filter out groups without gid attribute or with gid equal to zero. Resolves: https://fedorahosted.org/sssd/ticket/2343 Reviewed-by: Michal Židek <mzidek@redhat.com> (cherry picked from commit 981bf55532fbec91a106f82d7daf32094c76dfe0)
-rw-r--r--src/providers/ldap/sdap_async_initgroups.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/providers/ldap/sdap_async_initgroups.c b/src/providers/ldap/sdap_async_initgroups.c
index 22b94ca03..92bc9e2b8 100644
--- a/src/providers/ldap/sdap_async_initgroups.c
+++ b/src/providers/ldap/sdap_async_initgroups.c
@@ -1587,11 +1587,7 @@ static struct tevent_req *sdap_initgr_rfc2307bis_send(
"(%s=*))",
opts->group_map[SDAP_AT_GROUP_OBJECTSID].name);
} else {
- /* When not ID-mapping, make sure there is a non-NULL UID */
- state->base_filter = talloc_asprintf_append(state->base_filter,
- "(&(%s=*)(!(%s=0))))",
- opts->group_map[SDAP_AT_GROUP_GID].name,
- opts->group_map[SDAP_AT_GROUP_GID].name);
+ state->base_filter = talloc_asprintf_append(state->base_filter, ")");
}
if (!state->base_filter) {
talloc_zfree(req);