summaryrefslogtreecommitdiffstats
path: root/ipaserver/install
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2011-01-10 17:16:25 -0500
committerRob Crittenden <rcritten@redhat.com>2011-01-11 10:22:33 -0500
commit06179dc105239496a7b0e55fc4a19ce576033565 (patch)
treefff1f4a85780dbfe10082a4e32df58e82b79432c /ipaserver/install
parent371ce528fb75b9e10b197a469425fef42be59051 (diff)
downloadfreeipa-06179dc105239496a7b0e55fc4a19ce576033565.tar.gz
freeipa-06179dc105239496a7b0e55fc4a19ce576033565.tar.xz
freeipa-06179dc105239496a7b0e55fc4a19ce576033565.zip
Exit if a DNS A or AAAA record doesn't exist for the replica we are preparing.
Without this it is possible to prepare a replica for a host that doesn't exist in DNS. The result when this replica file is installed is that replication will fail because the master won't be able to communicate to the replica by name. ticket 680
Diffstat (limited to 'ipaserver/install')
-rw-r--r--ipaserver/install/installutils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipaserver/install/installutils.py b/ipaserver/install/installutils.py
index b9e2ebdb..a5457e2d 100644
--- a/ipaserver/install/installutils.py
+++ b/ipaserver/install/installutils.py
@@ -99,7 +99,7 @@ def verify_dns_records(host_name, responses, resaddr, family):
def verify_fqdn(host_name,no_host_dns=False):
if len(host_name.split(".")) < 2 or host_name == "localhost.localdomain":
- raise RuntimeError("Invalid hostname: " + host_name)
+ raise RuntimeError("Invalid hostname '%s', must be fully-qualified." % host_name)
try:
hostaddr = socket.getaddrinfo(host_name, None)
@@ -129,7 +129,7 @@ def verify_fqdn(host_name,no_host_dns=False):
if len(rs) != 0:
for rsn in rs:
if rsn.dns_type == dnsclient.DNS_T_CNAME:
- raise RuntimeError("The IPA Server Hostname cannot be a CNAME, only A names are allowed.")
+ raise RuntimeError("The IPA Server Hostname cannot be a CNAME, only A and AAAA names are allowed.")
# Verify that it is a DNS A or AAAA record
rs = dnsclient.query(host_name+".", dnsclient.DNS_C_IN, dnsclient.DNS_T_A)