summaryrefslogtreecommitdiff
path: root/src/tools/sss_sync_ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/sss_sync_ops.c')
-rw-r--r--src/tools/sss_sync_ops.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/tools/sss_sync_ops.c b/src/tools/sss_sync_ops.c
index 25b8ac7a..498be284 100644
--- a/src/tools/sss_sync_ops.c
+++ b/src/tools/sss_sync_ops.c
@@ -1301,6 +1301,9 @@ int useradd(TALLOC_CTX *mem_ctx,
SYNC_LOOP(res, ret);
+ flush_nscd_cache(mem_ctx, NSCD_DB_PASSWD);
+ flush_nscd_cache(mem_ctx, NSCD_DB_GROUP);
+
talloc_free(res);
return ret;
}
@@ -1349,6 +1352,9 @@ int userdel(TALLOC_CTX *mem_ctx,
SYNC_LOOP(res, ret);
+ flush_nscd_cache(mem_ctx, NSCD_DB_PASSWD);
+ flush_nscd_cache(mem_ctx, NSCD_DB_GROUP);
+
talloc_free(res);
return ret;
}
@@ -1397,6 +1403,9 @@ int usermod(TALLOC_CTX *mem_ctx,
SYNC_LOOP(res, ret);
+ flush_nscd_cache(mem_ctx, NSCD_DB_PASSWD);
+ flush_nscd_cache(mem_ctx, NSCD_DB_GROUP);
+
talloc_free(res);
return ret;
}
@@ -1445,6 +1454,8 @@ int groupadd(TALLOC_CTX *mem_ctx,
SYNC_LOOP(res, ret);
+ flush_nscd_cache(mem_ctx, NSCD_DB_GROUP);
+
talloc_free(res);
return ret;
}
@@ -1493,6 +1504,8 @@ int groupdel(TALLOC_CTX *mem_ctx,
SYNC_LOOP(res, ret);
+ flush_nscd_cache(mem_ctx, NSCD_DB_GROUP);
+
talloc_free(res);
return ret;
}
@@ -1541,6 +1554,8 @@ int groupmod(TALLOC_CTX *mem_ctx,
SYNC_LOOP(res, ret);
+ flush_nscd_cache(mem_ctx, NSCD_DB_GROUP);
+
talloc_free(res);
return ret;
}