Fix bug #6098 - When the DNS server is invalid, the ads_find_dc() does not work corre...
authorYasuma Takeda <yasuma@osstech.co.jp>
Wed, 11 Feb 2009 22:10:21 +0000 (14:10 -0800)
committerJeremy Allison <jra@samba.org>
Wed, 11 Feb 2009 22:10:21 +0000 (14:10 -0800)
commit58331a118dd6a7fb56e70afe6cf93ef7cfff7e81
treec5ef1981fbbb80af6b6add428114f3783a437306
parentdb4a435d235bedf48d668a0f4418dd46f38044ed
Fix bug #6098 - When the DNS server is invalid, the ads_find_dc() does not work correctly with "security = domain"

1. If DNS server is invalid, the get_sorted_dc_list() is called with
realm(FQDN) and it fails.
2. On the next step, the get_sorted_dc_list() is called with realm(FQDN) again.

I think "again" is wrong place.
On the 2nd step, get_sorted_dc_list() should be called with realm(WORKGROUP).
source/libads/ldap.c