Remove check for alphabetic only characters from domain name validation

The .isalpha() check in validate_domain_name() was too strict,
causing some commands like ipa dnsrecord-add to fail.

https://fedorahosted.org/freeipa/ticket/3385
This commit is contained in:
Ana Krivokapic 2013-02-15 08:47:06 -05:00 committed by Martin Kosek
parent c8846bab25
commit 8de6c3fa90

View File

@ -244,9 +244,6 @@ def validate_domain_name(domain_name, allow_underscore=False):
# apply DNS name validator to every name part
map(lambda label:validate_dns_label(label,allow_underscore), domain_name)
if not domain_name[-1].isalpha():
# see RFC 1123
raise ValueError(_('top level domain label must be alphabetic'))
def validate_zonemgr(zonemgr):
""" See RFC 1033, 1035 """