From 8de6c3fa90e44ab3a157d5022f532e5604b0bfe2 Mon Sep 17 00:00:00 2001 From: Ana Krivokapic Date: Fri, 15 Feb 2013 08:47:06 -0500 Subject: 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 --- ipalib/util.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'ipalib/util.py') diff --git a/ipalib/util.py b/ipalib/util.py index 9ed27c84..3c52e4fd 100644 --- a/ipalib/util.py +++ b/ipalib/util.py @@ -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 """ -- cgit