diff options
author | Rob Crittenden <rcritten@redhat.com> | 2011-03-17 10:22:33 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2011-03-18 14:54:01 -0400 |
commit | 15e213d0258f69feaf6031a8721902f63c864ac2 (patch) | |
tree | d2951cc9b7020d5f0f569e7c2521a8535aac2dbb /ipaserver/install/installutils.py | |
parent | 861d1bbdca4793fb45fb233d236d3793cc23da36 (diff) | |
download | freeipa-15e213d0258f69feaf6031a8721902f63c864ac2.tar.gz freeipa-15e213d0258f69feaf6031a8721902f63c864ac2.tar.xz freeipa-15e213d0258f69feaf6031a8721902f63c864ac2.zip |
Ensure that the system hostname is lower-case.
ticket 1080
Diffstat (limited to 'ipaserver/install/installutils.py')
-rw-r--r-- | ipaserver/install/installutils.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ipaserver/install/installutils.py b/ipaserver/install/installutils.py index 9f4bd615b..b3402440a 100644 --- a/ipaserver/install/installutils.py +++ b/ipaserver/install/installutils.py @@ -101,6 +101,9 @@ def verify_fqdn(host_name,no_host_dns=False): if len(host_name.split(".")) < 2 or host_name == "localhost.localdomain": raise RuntimeError("Invalid hostname '%s', must be fully-qualified." % host_name) + if host_name != host_name.lower(): + raise RuntimeError("Invalid hostname '%s', must be lower-case." % host_name) + try: hostaddr = socket.getaddrinfo(host_name, None) except: |