Add support of new options in dnsconfig

dnsconfig was extended of new attributes, so reflecting it in UI.

New attributes:
  * idnsForwardPolicy
  * idnsAllowSyncPTR
  * idnsZoneRefresh

 https://fedorahosted.org/freeipa/ticket/2489
This commit is contained in:
Petr Vobornik 2012-03-07 09:28:54 +01:00
parent 9b562f7377
commit 1b0ede0776
3 changed files with 30 additions and 1 deletions

View File

@ -42,11 +42,22 @@ IPA.dns.config_entity = function(spec) {
name: 'options', name: 'options',
label: IPA.messages.objects.dnsconfig.options, label: IPA.messages.objects.dnsconfig.options,
fields: [ fields: [
{
type: 'checkbox',
name: 'idnsallowsyncptr'
},
{ {
type: 'multivalued', type: 'multivalued',
name: 'idnsforwarders', name: 'idnsforwarders',
validators: [IPA.ip_address_validator()] validators: [IPA.ip_address_validator()]
} },
{
type: 'checkboxes',
name: 'idnsforwardpolicy',
mutex: true,
options: IPA.create_options(['only', 'first'])
},
'idnszonerefresh'
] ]
} }
], ],

View File

@ -17,9 +17,18 @@
"cn": [ "cn": [
"dns" "dns"
], ],
"idnsallowsyncptr": [
"FALSE"
],
"idnsforwarders": [ "idnsforwarders": [
"2001:beef::1" "2001:beef::1"
], ],
"idnsforwardpolicy": [
"first"
],
"idnszonerefresh": [
"20"
],
"objectclass": [ "objectclass": [
"idnsConfigObject", "idnsConfigObject",
"nsContainer", "nsContainer",

View File

@ -18,9 +18,18 @@
"dns" "dns"
], ],
"dn": "cn=dns,dc=dev,dc=example,dc=com", "dn": "cn=dns,dc=dev,dc=example,dc=com",
"idnsallowsyncptr": [
"FALSE"
],
"idnsforwarders": [ "idnsforwarders": [
"2001:beef::1" "2001:beef::1"
], ],
"idnsforwardpolicy": [
"first"
],
"idnszonerefresh": [
"20"
],
"objectclass": [ "objectclass": [
"idnsConfigObject", "idnsConfigObject",
"nsContainer", "nsContainer",