diff options
author | Ana Krivokapic <akrivoka@redhat.com> | 2013-02-15 08:47:06 -0500 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2013-03-15 12:52:34 +0100 |
commit | 8de6c3fa90e44ab3a157d5022f532e5604b0bfe2 (patch) | |
tree | 7f52bcbdf9c8ca57a510d8204100a7014279b4c7 | |
parent | c8846bab2596de7537f677aecc4881665a535d34 (diff) | |
download | freeipa-8de6c3fa90e44ab3a157d5022f532e5604b0bfe2.tar.gz freeipa-8de6c3fa90e44ab3a157d5022f532e5604b0bfe2.tar.xz freeipa-8de6c3fa90e44ab3a157d5022f532e5604b0bfe2.zip |
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
-rw-r--r-- | ipalib/util.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/ipalib/util.py b/ipalib/util.py index 9ed27c84e..3c52e4fd9 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 """ |