s4:libnet: use a connected CLDAP socket.
commitb6737c1a7cfe68ff45a2114b48e99176dd32d2ae
authorStefan Metzmacher <metze@samba.org>
Thu, 25 Feb 2010 11:47:38 +0000 (25 12:47 +0100)
committerAndrew Tridgell <tridge@samba.org>
Fri, 26 Feb 2010 02:22:12 +0000 (26 13:22 +1100)
tree2ad3f7d4c6d7e7e4499e4cb908f3050781d0aa1b
parent314a926179b02d7139016e56abc63a037e60ba43
s4:libnet: use a connected CLDAP socket.

This is needed because we don't (want) to specify an explicit
local address. And the socket family (ipv4 vs. ipv6) needs to
be autodetected based on the remote address before the
socket() syscall.

Otherwise we would try to connect to a ipv4 address through an
ipv6only socket.

metze
source4/libnet/config.mk
source4/libnet/libnet_become_dc.c
source4/libnet/libnet_site.c
source4/libnet/libnet_unbecome_dc.c