diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-07-01 04:47:29 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-07-01 04:47:29 +0000 |
commit | fd8d5e56af81277030137e4d59296ce133dd4906 (patch) | |
tree | 53f28724dd56e87f16f357299a141d2fa71af9a2 /source3 | |
parent | 4b12f559b9fa61309e1a64c8b286136aba9ba3eb (diff) | |
download | samba-fd8d5e56af81277030137e4d59296ce133dd4906.tar.gz samba-fd8d5e56af81277030137e4d59296ce133dd4906.tar.bz2 samba-fd8d5e56af81277030137e4d59296ce133dd4906.zip |
fixed a bug handling startup when the ads server is not contactable
(This used to be commit dbfd4e5101599bcb85600e4c5c93ce5390b9aa91)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/nsswitch/winbindd_ads.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_ads.c b/source3/nsswitch/winbindd_ads.c index 44aee8d307..360b37b61e 100644 --- a/source3/nsswitch/winbindd_ads.c +++ b/source3/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))); |