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:45 +0100 |
commit | a0f853c0895a4e33f6900614f3dc4694327f7714 (patch) | |
tree | 61fbcbc9c6b9b69f733160e3c884455f9dbada29 | |
parent | 6fb2199888eea4acc538a965d1df665653661e92 (diff) | |
download | freeipa.git-a0f853c0895a4e33f6900614f3dc4694327f7714.tar.gz freeipa.git-a0f853c0895a4e33f6900614f3dc4694327f7714.tar.xz freeipa.git-a0f853c0895a4e33f6900614f3dc4694327f7714.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 35e556d6..4d298ed9 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 """ |