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.
This commit is contained in:
Petr Vobornik
2012-09-06 13:22:21 +02:00
committed by Martin Kosek
parent 47ff46d042
commit da0be8b6b1

View File

@@ -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
})]