From e45fcd9e478300e6be8a49402fcea81fce623804 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Fri, 12 Mar 2010 16:52:26 +0100 Subject: Flush NSCD cache after modifying local database Fixes: #221 --- src/tools/tools_util.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/tools/tools_util.h') diff --git a/src/tools/tools_util.h b/src/tools/tools_util.h index a643e739..a2b5c783 100644 --- a/src/tools/tools_util.h +++ b/src/tools/tools_util.h @@ -105,4 +105,12 @@ int copy_tree(const char *src_root, int selinux_file_context(const char *dst_name); int reset_selinux_file_context(void); +/* from nscd.c */ +enum nscd_db { + NSCD_DB_PASSWD, + NSCD_DB_GROUP +}; + +int flush_nscd_cache(TALLOC_CTX *mem_ctx, enum nscd_db flush_db); + #endif /* __TOOLS_UTIL_H__ */ -- cgit