From 59523f55a92505967ae1706f8965bebe3f91caf2 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 12 Apr 2007 21:10:06 +0000 Subject: r22204: Workaround to quickly close bug #4508 This hack makes thing work, but we will need to try again to make the getpw* calls fully async, that's the real fix. (This used to be commit 2552859b3d9e28d5f25b339f5d24a8d2dc36b46b) --- source3/nsswitch/winbindd.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/nsswitch/winbindd.c') diff --git a/source3/nsswitch/winbindd.c b/source3/nsswitch/winbindd.c index 0edf3664b7..39bd66989c 100644 --- a/source3/nsswitch/winbindd.c +++ b/source3/nsswitch/winbindd.c @@ -1010,6 +1010,9 @@ int main(int argc, char **argv, char **envp) namecache_enable(); + /* quick hack to avoid a loop in idmap, proper fix later */ + reset_idmap_in_own_child(); + /* Winbind daemon initialisation */ if ( ! NT_STATUS_IS_OK(idmap_init_cache()) ) { -- cgit