Fix bug #6098 - When the DNS server is invalid, the ads_find_dc() does not work corre...
commit962acaf800014913794cbbc1df381f619f63a6ca
authorYasuma Takeda <yasuma@osstech.co.jp>
Wed, 11 Feb 2009 22:36:51 +0000 (11 14:36 -0800)
committerKarolin Seeger <kseeger@samba.org>
Mon, 16 Feb 2009 08:57:02 +0000 (16 09:57 +0100)
treee3c5dc895dca4f88e5d0bf7f3e7e31e608708a60
parent36d5f646e2aa217bcff65bbf357828a575a21e4e
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 a8a7040d7dbffe7b1c2bccb8b46e08fb996786ac)
source/libads/ldap.c