diff options
author | Martin Basti <mbasti@redhat.com> | 2014-03-20 09:38:57 +0100 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2014-06-03 15:55:32 +0200 |
commit | dafd162ae5a9a5fa621c651b3a8aaf8ea174746e (patch) | |
tree | c19591145222223d3667d7ad053be24e3d54494a /ipalib/plugins/dns.py | |
parent | 5b88b39499f6d6ea46efa55b1a50353fc3c17fe7 (diff) | |
download | freeipa-dafd162ae5a9a5fa621c651b3a8aaf8ea174746e.tar.gz freeipa-dafd162ae5a9a5fa621c651b3a8aaf8ea174746e.tar.xz freeipa-dafd162ae5a9a5fa621c651b3a8aaf8ea174746e.zip |
_domain_name_validatord moved from DNS to realmdomains
Validator is no more used in dns plugin
Part of ticket:
IPA should allow internationalized domain names
https://fedorahosted.org/freeipa/ticket/3169
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipalib/plugins/dns.py')
-rw-r--r-- | ipalib/plugins/dns.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/ipalib/plugins/dns.py b/ipalib/plugins/dns.py index 27caf851b..6e804778d 100644 --- a/ipalib/plugins/dns.py +++ b/ipalib/plugins/dns.py @@ -38,8 +38,6 @@ from ipalib import _, ngettext from ipalib.util import (validate_zonemgr, normalize_zonemgr, get_dns_forward_zone_update_policy, get_dns_reverse_zone_update_policy, - normalize_zone, zone_is_reverse, - validate_domain_name, get_reverse_zone_default, REVERSE_DNS_ZONES) from ipapython.ipautil import valid_ip, CheckedIPAddress, is_host_resolvable from ipapython.dnsutil import DNSName @@ -404,15 +402,6 @@ def _validate_bind_forwarder(ugettext, forwarder): return None -def _domain_name_validator(ugettext, value): - try: - #classless reverse zones can contain slash '/' - normalized_zone = normalize_zone(value) - validate_domain_name(value, allow_slash=zone_is_reverse(normalized_zone)) - - except ValueError, e: - return unicode(e) - def _hostname_validator(ugettext, value): assert isinstance(value, DNSName) if len(value.make_absolute().labels) < 3: |