summaryrefslogtreecommitdiff
path: root/src/tools/tools_util.h
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-03-12 16:52:26 +0100
committerStephen Gallagher <sgallagh@redhat.com>2010-03-15 07:40:52 -0400
commite45fcd9e478300e6be8a49402fcea81fce623804 (patch)
treef13ce827e549ebd3985bc51f3dc9848fb98e4f64 /src/tools/tools_util.h
parent5096bb4c2242b426aa6f5ea2cb82223e0b81a345 (diff)
downloadsssd-e45fcd9e478300e6be8a49402fcea81fce623804.tar.gz
sssd-e45fcd9e478300e6be8a49402fcea81fce623804.tar.bz2
sssd-e45fcd9e478300e6be8a49402fcea81fce623804.zip
Flush NSCD cache after modifying local database
Fixes: #221
Diffstat (limited to 'src/tools/tools_util.h')
-rw-r--r--src/tools/tools_util.h8
1 files changed, 8 insertions, 0 deletions
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__ */