diff options
author | Paul B. Henson <henson@acm.org> | 2012-11-13 03:31:43 -0800 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-11-15 20:03:27 +0100 |
commit | 59f136cd254d1acf2991c97221eb08803784777d (patch) | |
tree | 6e97ba0d904277489ba88f4fd5a0ae9b23424dbb /src/providers/ldap/sdap_async_groups.c | |
parent | 32f763808dc741289ca03248b89fe526494b645a (diff) | |
download | sssd-59f136cd254d1acf2991c97221eb08803784777d.tar.gz sssd-59f136cd254d1acf2991c97221eb08803784777d.tar.bz2 sssd-59f136cd254d1acf2991c97221eb08803784777d.zip |
Add ignore_group_members option.
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 f0185e41..67dddae7 100644 --- a/src/providers/ldap/sdap_async_groups.c +++ b/src/providers/ldap/sdap_async_groups.c @@ -1648,8 +1648,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")); |