summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/sdap_async_groups.c
diff options
context:
space:
mode:
authorPaul B. Henson <henson@acm.org>2012-11-13 03:31:43 -0800
committerJakub Hrozek <jhrozek@redhat.com>2013-08-08 22:42:50 +0200
commite26fbae9b73eeb5d3d9c1108d02c081ebd48d068 (patch)
tree0cf1c257e9ad298b48bbc3bd6258d2dbef1f5dfb /src/providers/ldap/sdap_async_groups.c
parenta37bf040638ce3015c3af0a24767b1c326121e21 (diff)
downloadsssd-e26fbae9b73eeb5d3d9c1108d02c081ebd48d068.tar.gz
sssd-e26fbae9b73eeb5d3d9c1108d02c081ebd48d068.tar.xz
sssd-e26fbae9b73eeb5d3d9c1108d02c081ebd48d068.zip
Add ignore_group_members option.sssd-1.9.2-102.el6
https://fedorahosted.org/sssd/ticket/1376
Diffstat (limited to 'src/providers/ldap/sdap_async_groups.c')
-rw-r--r--src/providers/ldap/sdap_async_groups.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_async_groups.c b/src/providers/ldap/sdap_async_groups.c
index e4dc4dfb2..55111783c 100644
--- a/src/providers/ldap/sdap_async_groups.c
+++ b/src/providers/ldap/sdap_async_groups.c
@@ -1795,8 +1795,12 @@ static void sdap_get_groups_done(struct tevent_req *subreq)
if (state->check_count == 0) {
DEBUG(9, ("All groups processed\n"));
+ /* If ignore_group_members is set for the domain, don't update
+ * group memberships in the cache.
+ */
ret = sdap_save_groups(state, state->sysdb, state->dom, state->opts,
- state->groups, state->count, true, NULL,
+ state->groups, state->count,
+ !state->dom->ignore_group_members, NULL,
&state->higher_usn);
if (ret) {
DEBUG(2, ("Failed to store groups.\n"));