diff options
author | Martin Kosek <mkosek@redhat.com> | 2011-10-07 14:23:20 +0200 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2011-10-13 00:54:37 -0400 |
commit | 9bff6cb8a955c3f4b167e05856b40f6e2ee5dca8 (patch) | |
tree | f09336f8e074eaae81015fffca5cf56b55ce11e5 /install/tools/ipa-replica-prepare | |
parent | 93ddfd008af6cd720c6f8c6902e8d24b06d59e72 (diff) | |
download | freeipa-9bff6cb8a955c3f4b167e05856b40f6e2ee5dca8.tar.gz freeipa-9bff6cb8a955c3f4b167e05856b40f6e2ee5dca8.tar.xz freeipa-9bff6cb8a955c3f4b167e05856b40f6e2ee5dca8.zip |
Check hostname resolution sanity
Always check (even with --setup-dns or --no-host-dns) that if the
host name or ip address resolves, it resolves to sane value. Otherwise
report an error. Misconfigured /etc/hosts causing these errors could
harm the installation later.
https://fedorahosted.org/freeipa/ticket/1923
Diffstat (limited to 'install/tools/ipa-replica-prepare')
-rwxr-xr-x | install/tools/ipa-replica-prepare | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/install/tools/ipa-replica-prepare b/install/tools/ipa-replica-prepare index 924fd9b5..031c7b98 100755 --- a/install/tools/ipa-replica-prepare +++ b/install/tools/ipa-replica-prepare @@ -267,7 +267,7 @@ def main(): sys.exit("\nUnable to connect to LDAP server %s" % api.env.host) try: - installutils.verify_fqdn(replica_fqdn, system_name_check=False) + installutils.verify_fqdn(replica_fqdn, local_hostname=False) except BadHostError, e: msg = str(e) if isinstance(e, HostLookupError): |