From 155083547af5d50c485d60319f7a329842b83c82 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 6 Dec 2006 23:14:15 +0000 Subject: r20057: Attempt to fix connect timeouts when connected on a network but not one on which any home DC's can be found (hotel network problem). Still testing but this is getting close. Jeremy. (This used to be commit 369c9e4138b93f7cfb6680f0beb541f58554e856) --- source3/nsswitch/winbindd_cache.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/nsswitch/winbindd_cache.c') diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c index 799eb5855c..7990068ee4 100644 --- a/source3/nsswitch/winbindd_cache.c +++ b/source3/nsswitch/winbindd_cache.c @@ -87,10 +87,11 @@ static struct winbind_cache *get_cache(struct winbindd_domain *domain) struct winbindd_domain *our_domain = domain; #endif - /* we have to know what type of domain we are dealing with first */ + /* We have to know what type of domain we are dealing with first. */ - if ( !domain->initialized ) + if ( !domain->initialized ) { init_dc_connection( domain ); + } /* OK. listen up becasue I'm only going to say this once. -- cgit