mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
parent
c8846bab25
commit
8de6c3fa90
@ -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 """
|
||||
|
Loading…
Reference in New Issue
Block a user