diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2013-01-21 13:23:30 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-01-21 16:09:41 +0100 |
commit | 7a92ae1598735ff69e36c72a7be60292ccad41d3 (patch) | |
tree | a30e457879c93bd459ff415ed044428b81e0a5b9 /src/tools/sss_usermod.c | |
parent | 2234d49c8a307ee4f11cc544c862a359f76b44ad (diff) | |
download | sssd-7a92ae1598735ff69e36c72a7be60292ccad41d3.tar.gz sssd-7a92ae1598735ff69e36c72a7be60292ccad41d3.tar.xz sssd-7a92ae1598735ff69e36c72a7be60292ccad41d3.zip |
TOOLS: invalidate parent groups in memory cache, too
https://fedorahosted.org/sssd/ticket/1775
In addition to invalidating the group being added to when adding a
member group/user, we also need to invalidate all its parent groups,
otherwise this getgrnam("parent") wouldn't report the members newly
added to its child groups.
Diffstat (limited to 'src/tools/sss_usermod.c')
-rw-r--r-- | src/tools/sss_usermod.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/sss_usermod.c b/src/tools/sss_usermod.c index 23630435c..fa2c27b04 100644 --- a/src/tools/sss_usermod.c +++ b/src/tools/sss_usermod.c @@ -243,14 +243,14 @@ int main(int argc, const char **argv) /* Nothing we can do about it */ } - ret = sss_mc_refresh_grouplist(tctx->octx->addgroups); + ret = sss_mc_refresh_grouplist(tctx, tctx->octx->addgroups); if (ret != EOK) { ERROR("NSS request failed (%1$d). Entry might remain in memory " "cache.\n", ret); /* Nothing we can do about it */ } - ret = sss_mc_refresh_grouplist(tctx->octx->rmgroups); + ret = sss_mc_refresh_grouplist(tctx, tctx->octx->rmgroups); if (ret != EOK) { ERROR("NSS request failed (%1$d). Entry might remain in memory " "cache.\n", ret); |