static void flush_caches(void) { /* We need to invalidate cached user list entries on a SIGHUP otherwise cached access denied errors due to restrict anonymous hang around until the sequence number changes. */ if (!wcache_invalidate_cache()) { DEBUG(0, ("invalidating the cache failed; revalidate the cache\n")); if (!winbindd_cache_validate_and_initialize()) { exit(1); } } }
static void flush_caches(void) { #if 0 /* Clear cached user and group enumation info */ if (!opt_dual_daemon) /* Until we have coherent cache flush. */ wcache_flush_cache(); #endif /* We need to invalidate cached user list entries on a SIGHUP otherwise cached access denied errors due to restrict anonymous hang around until the sequence number changes. */ wcache_invalidate_cache(); }