static void remove_client(struct winbindd_cli_state *state);
static void winbindd_setup_max_fds(void);
-static bool opt_nocache = False;
static bool interactive = False;
struct imessaging_context *winbind_imessaging_context(void)
return false;
}
-bool winbindd_use_idmap_cache(void)
-{
- return !opt_nocache;
-}
-
-bool winbindd_use_cache(void)
-{
- return !opt_nocache;
-}
-
static void winbindd_register_handlers(struct messaging_context *msg_ctx,
bool foreground)
{
while ((opt = poptGetNextOpt(pc)) != -1) {
switch (opt) {
case 'n':
- opt_nocache = true;
+ winbindd_set_use_cache(false);
break;
default:
d_fprintf(stderr, "\nInvalid option %s: %s\n\n",
static void wcache_flush_cache(void);
+static bool opt_nocache = False;
+
/*
* JRA. KEEP THIS LIST UP TO DATE IF YOU ADD CACHE ENTRIES.
* Here are the list of entry types that are *not* stored
NULL
};
+bool winbindd_use_idmap_cache(void)
+{
+ return !opt_nocache;
+}
+
+bool winbindd_use_cache(void)
+{
+ return !opt_nocache;
+}
+
+void winbindd_set_use_cache(bool use_cache)
+{
+ opt_nocache = !use_cache;
+}
+
/************************************************************************
Is this key a non-centry type ?
************************************************************************/
bool winbindd_setup_sig_hup_handler(const char *lfile);
bool winbindd_use_idmap_cache(void);
bool winbindd_use_cache(void);
+void winbindd_set_use_cache(bool use_cache);
char *get_winbind_priv_pipe_dir(void);
void winbindd_flush_caches(void);
bool winbindd_reload_services_file(const char *lfile);