]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
fixed a bug handling startup when the ads server is not contactable
authorAndrew Tridgell <tridge@samba.org>
Mon, 1 Jul 2002 04:47:29 +0000 (04:47 +0000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 1 Jul 2002 04:47:29 +0000 (04:47 +0000)
source/nsswitch/winbindd_ads.c

index 44aee8d30734ac60d66ba5c944da480103623469..360b37b61e9b6867ce37c9b3dccd73e64f09a51b 100644 (file)
@@ -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)));