diff options
author | Paul B. Henson <henson@acm.org> | 2012-11-13 03:31:43 -0800 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-08-08 22:42:50 +0200 |
commit | e26fbae9b73eeb5d3d9c1108d02c081ebd48d068 (patch) | |
tree | 0cf1c257e9ad298b48bbc3bd6258d2dbef1f5dfb /src/providers/ldap/sdap_async_groups.c | |
parent | a37bf040638ce3015c3af0a24767b1c326121e21 (diff) | |
download | sssd-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.c | 6 |
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")); |