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)
committerKarolin Seeger <kseeger@samba.org>
Thu, 30 Jul 2009 07:22:12 +0000 (09:22 +0200)
commit2a6f8e88150df48271fbe663b5702d725bcac3eb
tree024bdb4181681385ae47c13e9981695a6f792298
parent99ad00efd7d3d0990ec20e0f278d63cf55167d0c
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).
(cherry picked from commit 58331a118dd6a7fb56e70afe6cf93ef7cfff7e81)
source/libads/ldap.c