From: Andrew Tridgell Date: Mon, 1 Jul 2002 04:47:29 +0000 (+0000) Subject: fixed a bug handling startup when the ads server is not contactable X-Git-Tag: samba-3.0.0alpha18~100 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbfd4e5101599bcb85600e4c5c93ce5390b9aa91;p=thirdparty%2Fsamba.git fixed a bug handling startup when the ads server is not contactable --- diff --git a/source/nsswitch/winbindd_ads.c b/source/nsswitch/winbindd_ads.c index 44aee8d3073..360b37b61e9 100644 --- a/source/nsswitch/winbindd_ads.c +++ b/source/nsswitch/winbindd_ads.c @@ -143,7 +143,7 @@ static ADS_STRUCT *ads_cached_connection(struct winbindd_domain *domain) ads->password = secrets_fetch_machine_password(); status = ads_connect(ads); - if (!ADS_ERR_OK(status)) { + if (!ADS_ERR_OK(status) || !ads->realm) { extern struct winbindd_methods msrpc_methods; DEBUG(1,("ads_connect for domain %s failed: %s\n", domain->name, ads_errstr(status)));