From ee4d2739f11465ba6a7d817f9b988da5bfe86e2c Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Wed, 1 Dec 2010 17:22:56 +0100 Subject: Make the IPA installer IPv6 friendly Notable changes include: * parse AAAA records in dnsclient * also ask for AAAA records when verifying FQDN * do not use functions that are not IPv6 aware - notably socket.gethostbyname() The complete list of functions was taken from http://www.akkadia.org/drepper/userapi-ipv6.html section "Interface Checklist" --- ipaserver/install/krbinstance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipaserver/install/krbinstance.py') diff --git a/ipaserver/install/krbinstance.py b/ipaserver/install/krbinstance.py index c1e5a3f0..bffd7c1b 100644 --- a/ipaserver/install/krbinstance.py +++ b/ipaserver/install/krbinstance.py @@ -135,7 +135,7 @@ class KrbInstance(service.Service): self.fqdn = host_name self.realm = realm_name.upper() self.host = host_name.split(".")[0] - self.ip = socket.gethostbyname(host_name) + self.ip = socket.getaddrinfo(host_name, None, socket.AF_UNSPEC, socket.SOCK_STREAM)[0][4][0] self.domain = domain_name self.suffix = util.realm_to_suffix(self.realm) self.kdc_password = ipautil.ipa_generate_password() -- cgit