diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-08-29 23:23:42 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-08-29 23:23:42 +0000 |
commit | f757223ebe88148b83e1a32b87c014c15c0a68dd (patch) | |
tree | ae2ace0b190ab978e92b7f0bc72911142707f79a | |
parent | e95d8e2c9ee5cf22b628f3e0d99fb74bcc632ea0 (diff) | |
download | samba-f757223ebe88148b83e1a32b87c014c15c0a68dd.tar.gz samba-f757223ebe88148b83e1a32b87c014c15c0a68dd.tar.xz samba-f757223ebe88148b83e1a32b87c014c15c0a68dd.zip |
fix connecting to a BDC when the PDC is down but in WINS and no bcast
can be used to find a BDC
2nd try ....
-rw-r--r-- | source/nsswitch/winbindd_cm.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/source/nsswitch/winbindd_cm.c b/source/nsswitch/winbindd_cm.c index 8c11bd33729..997d5b665f4 100644 --- a/source/nsswitch/winbindd_cm.c +++ b/source/nsswitch/winbindd_cm.c @@ -152,11 +152,9 @@ static BOOL cm_rpc_find_dc(const char *domain, struct in_addr *dc_ip, fstring sr return True; } - if (!get_dc_list(True, domain, &ip_list, &count)) { - if (!get_dc_list(False, domain, &ip_list, &count)) { - DEBUG(3, ("Could not look up dc's for domain %s\n", domain)); - return False; - } + if (!get_dc_list(False, domain, &ip_list, &count)) { + DEBUG(3, ("Could not look up dc's for domain %s\n", domain)); + return False; } /* Pick a nice close server */ |