summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-11-26 10:20:03 +1100
committerAndrew Tridgell <tridge@samba.org>2010-11-26 03:08:21 +0100
commiteeb29b593a671e16f87e64f01abea47ec898ba77 (patch)
tree7db37963326a465209bdf23bcd1e304cb2066702 /source4/scripting/python
parente52ba1fb87ff57052f460246c2026604a8f63bf2 (diff)
downloadsamba-eeb29b593a671e16f87e64f01abea47ec898ba77.tar.gz
samba-eeb29b593a671e16f87e64f01abea47ec898ba77.tar.bz2
samba-eeb29b593a671e16f87e64f01abea47ec898ba77.zip
s4-provision: don't try to look for an IPv6 address when not specified
the getaddrinfo() method of finding an IPv6 address is incorrect. We could do it via the Samba interfaces code, but until we have that it is better to not try to auto-detect IPv6 Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/scripting/python')
-rw-r--r--source4/scripting/python/samba/provision.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/source4/scripting/python/samba/provision.py b/source4/scripting/python/samba/provision.py
index cb1e8bd3ee..b6c39cbb66 100644
--- a/source4/scripting/python/samba/provision.py
+++ b/source4/scripting/python/samba/provision.py
@@ -1484,17 +1484,6 @@ def provision(setup_dir, logger, session_info,
if len(hostips) > 1:
logger.warning("More than one IPv4 address found. Using %s.", hostip)
- if hostip6 is None:
- try:
- logger.info("Looking up IPv6 address for %s" % names.hostname)
- for ip in socket.getaddrinfo(names.hostname, None, socket.AF_INET6, socket.AI_CANONNAME, socket.IPPROTO_IP):
- if hostip6 is None:
- hostip6 = ip[-1][0]
- if hostip6 == '::1' and ip[-1][0] != '::1':
- hostip6 = ip[-1][0]
- except socket.gaierror, (socket.EAI_NODATA, msg):
- hostip6 = None
-
if serverrole is None:
serverrole = lp.get("server role")