From 962e42caa5d2b53b849a90d7c1c2bf0d45e26d4e Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 16 Mar 2006 13:37:23 +0000 Subject: r14474: Also flush the nscd caches before entering the main winbindd loop. Guenther (This used to be commit c81eb71834dc827db63c8adb3f816bbbe916473c) --- source3/nsswitch/winbindd_dual.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'source3/nsswitch/winbindd_dual.c') diff --git a/source3/nsswitch/winbindd_dual.c b/source3/nsswitch/winbindd_dual.c index fc889eb8a9..f70b2539d3 100644 --- a/source3/nsswitch/winbindd_dual.c +++ b/source3/nsswitch/winbindd_dual.c @@ -570,22 +570,7 @@ static void child_msg_online(int msg_type, struct process_id src, void *buf, siz /* Set our global state as online. */ set_global_winbindd_state_online(); -#ifdef HAVE_NSCD_FLUSH_CACHE - { - /* Flush nscd caches to get accurate new information */ - int ret = nscd_flush_cache("passwd"); - if (ret) { - DEBUG(5,("failed to flush nscd cache for 'passwd' service: %s\n", - strerror(ret))); - } - - ret = nscd_flush_cache("group"); - if (ret) { - DEBUG(5,("failed to flush nscd cache for 'group' service: %s\n", - strerror(ret))); - } - } -#endif + winbindd_flush_nscd_cache(); /* Mark everything online - delete any negative cache entries to force an immediate reconnect. */ -- cgit