summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorTomas Babej <tbabej@redhat.com>2013-04-15 12:50:54 +0200
committerMartin Kosek <mkosek@redhat.com>2013-04-25 12:45:54 +0200
commit2973128cf068898c57d12a274b6eecbfb3213898 (patch)
treec58ed55ace837c4fdfb9f8f587c3d1b87bb3b1aa /ipalib
parent4cff518517fb400a399fc3cb5cc8bf5285c7cbc5 (diff)
downloadfreeipa-2973128cf068898c57d12a274b6eecbfb3213898.tar.gz
freeipa-2973128cf068898c57d12a274b6eecbfb3213898.tar.xz
freeipa-2973128cf068898c57d12a274b6eecbfb3213898.zip
Allow underscore in record targets
Makes record target validation less strict and allows underscore. This is requirement for IPA sites. https://fedorahosted.org/freeipa/ticket/3550
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/plugins/dns.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/dns.py b/ipalib/plugins/dns.py
index d59df59a2..3ad03402d 100644
--- a/ipalib/plugins/dns.py
+++ b/ipalib/plugins/dns.py
@@ -373,7 +373,7 @@ def _bind_hostname_validator(ugettext, value):
try:
# Allow domain name which is not fully qualified. These are supported
# in bind and then translated as <non-fqdn-name>.<domain>.
- validate_hostname(value, check_fqdn=False)
+ validate_hostname(value, check_fqdn=False, allow_underscore=True)
except ValueError, e:
return _('invalid domain-name: %s') \
% unicode(e)