summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-07-28 18:02:10 -0700
committerJeremy Allison <jra@samba.org>2009-07-28 18:02:10 -0700
commit2d0cd3e53ad59f3fe4a42a3158fc85f37e6d6560 (patch)
treecc97643e148afa6d31e7dddeec800bb50179372d /source3/libads
parent285edf6a5986eb3a1f831f4b260afda0bb14c51e (diff)
downloadsamba-2d0cd3e53ad59f3fe4a42a3158fc85f37e6d6560.tar.gz
samba-2d0cd3e53ad59f3fe4a42a3158fc85f37e6d6560.tar.bz2
samba-2d0cd3e53ad59f3fe4a42a3158fc85f37e6d6560.zip
(Hopefully) fix the problem Kai reported with
net ads leave and IPv6. Ensure all DC lookups prefer IPv4. Jeremy.
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/cldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libads/cldap.c b/source3/libads/cldap.c
index 523020797b..5cefd6ccc1 100644
--- a/source3/libads/cldap.c
+++ b/source3/libads/cldap.c
@@ -44,7 +44,7 @@ bool ads_cldap_netlogon(TALLOC_CTX *mem_ctx,
int ret;
struct tsocket_address *dest_addr;
- if (!interpret_string_addr(&ss, server, 0)) {
+ if (!interpret_string_addr_prefer_ipv4(&ss, server, 0)) {
DEBUG(2,("Failed to resolve[%s] into an address for cldap\n",
server));
return false;