diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2013-01-15 12:36:24 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-01-15 20:16:05 +0100 |
commit | 2c0a971010596c122d7a0c0d76c8eb85f16f6d06 (patch) | |
tree | 0abb6718887435cf0286b9909c7cd26d66274029 /src/tools/sss_groupmod.c | |
parent | 2bb2eadf2b1b7854f430e37689b3e7a25bedfebd (diff) | |
download | sssd-2c0a971010596c122d7a0c0d76c8eb85f16f6d06.tar.gz sssd-2c0a971010596c122d7a0c0d76c8eb85f16f6d06.tar.xz sssd-2c0a971010596c122d7a0c0d76c8eb85f16f6d06.zip |
TOOLS: Refresh memcache after changes to local users and groups
Diffstat (limited to 'src/tools/sss_groupmod.c')
-rw-r--r-- | src/tools/sss_groupmod.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/tools/sss_groupmod.c b/src/tools/sss_groupmod.c index 1d80c5921..8463857a1 100644 --- a/src/tools/sss_groupmod.c +++ b/src/tools/sss_groupmod.c @@ -214,6 +214,27 @@ int main(int argc, const char **argv) } in_transaction = false; + ret = sss_mc_refresh_group(pc_groupname); + 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->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); + if (ret != EOK) { + ERROR("NSS request failed (%1$d). Entry might remain in memory " + "cache.\n", ret); + /* Nothing we can do about it */ + } + done: if (in_transaction) { sret = sysdb_transaction_cancel(tctx->sysdb); |