summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2012-09-06 13:22:21 +0200
committerMartin Kosek <mkosek@redhat.com>2012-09-06 13:59:47 +0200
commit89f928a6c7e2dda4fcb267f1e02c22af0c3cd5c7 (patch)
tree3cf6dfee9c66889c635dfc41ef10a01d2b90a9e0
parent9feabb9148cf0bc32604e2bed3b816fec3925871 (diff)
downloadfreeipa-89f928a6c7e2dda4fcb267f1e02c22af0c3cd5c7.tar.gz
freeipa-89f928a6c7e2dda4fcb267f1e02c22af0c3cd5c7.tar.xz
freeipa-89f928a6c7e2dda4fcb267f1e02c22af0c3cd5c7.zip
Allow localhost in zone ACIs - Web UI
Loopback address, "localhost" and "localnets" ACIs are no longer an issue for bind-dyndb-ldap. Allow them in our Web UI validators as well.
-rw-r--r--install/ui/dns.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/install/ui/dns.js b/install/ui/dns.js
index 33db481b8..43703e03f 100644
--- a/install/ui/dns.js
+++ b/install/ui/dns.js
@@ -168,11 +168,8 @@ IPA.dns.zone_entity = function(spec) {
type: 'netaddr',
name: 'idnsallowquery',
validators: [
- IPA.unsupported_validator({
- unsupported: ['localhost', 'localnets']
- }),
IPA.network_validator({
- specials: ['any', 'none'],
+ specials: ['any', 'none', 'localhost', 'localnets'],
allow_negation: true,
allow_host_address: true
})]
@@ -181,11 +178,8 @@ IPA.dns.zone_entity = function(spec) {
type: 'netaddr',
name: 'idnsallowtransfer',
validators: [
- IPA.unsupported_validator({
- unsupported: ['localhost', 'localnets']
- }),
IPA.network_validator({
- specials: ['any', 'none'],
+ specials: ['any', 'none', 'localhost', 'localnets'],
allow_negation: true,
allow_host_address: true
})]