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:23:29 +0000 (14:23 -0800)
committerMichael Adam <obnox@samba.org>
Tue, 24 Mar 2009 16:12:10 +0000 (17:12 +0100)
commite860df584b462f306ca75bcb9bb289946b8cae87
tree6273e191b01204816aaecde4c8c4987bd82be096
parent1ebd6ce818f70d8108319231d67d6e4de54d2855
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 2f3eafae83d036c5b35e5d7d11be6e29aaab7533)

Signed-off-by: Michael Adam <obnox@samba.org>
source/libads/ldap.c