mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
New UI for DNS global configuration
UI for DNS global configuration was implemented. https://fedorahosted.org/freeipa/ticket/2350
This commit is contained in:
committed by
Petr Vobornik
parent
43bbbf749d
commit
25bda1e860
@@ -28,6 +28,35 @@
|
|||||||
|
|
||||||
IPA.dns = {};
|
IPA.dns = {};
|
||||||
|
|
||||||
|
IPA.dns.config_entity = function(spec) {
|
||||||
|
|
||||||
|
var that = IPA.entity(spec);
|
||||||
|
|
||||||
|
that.init = function() {
|
||||||
|
that.entity_init();
|
||||||
|
|
||||||
|
that.builder.details_facet({
|
||||||
|
title: IPA.metadata.objects.config.label,
|
||||||
|
sections: [
|
||||||
|
{
|
||||||
|
name: 'options',
|
||||||
|
label: IPA.messages.objects.dnsconfig.options,
|
||||||
|
fields: [
|
||||||
|
{
|
||||||
|
type: 'multivalued',
|
||||||
|
name: 'idnsforwarders',
|
||||||
|
validators: [IPA.ip_address_validator()]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
needs_update: true
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
return that;
|
||||||
|
};
|
||||||
|
|
||||||
IPA.dns.zone_entity = function(spec) {
|
IPA.dns.zone_entity = function(spec) {
|
||||||
|
|
||||||
var that = IPA.entity(spec);
|
var that = IPA.entity(spec);
|
||||||
@@ -2242,5 +2271,6 @@ IPA.network_validator = function(spec) {
|
|||||||
return that;
|
return that;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
IPA.register('dnsconfig', IPA.dns.config_entity);
|
||||||
IPA.register('dnszone', IPA.dns.zone_entity);
|
IPA.register('dnszone', IPA.dns.zone_entity);
|
||||||
IPA.register('dnsrecord', IPA.dns.record_entity);
|
IPA.register('dnsrecord', IPA.dns.record_entity);
|
||||||
|
|||||||
@@ -408,8 +408,8 @@ IPA.navigation = function(spec) {
|
|||||||
container.tabs('select', index);
|
container.tabs('select', index);
|
||||||
|
|
||||||
var tab = tabs[index];
|
var tab = tabs[index];
|
||||||
if (tab.hidden) {
|
if (tab.depth !== undefined) {
|
||||||
depth--;
|
depth += tab.depth;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tab.children && tab.children.length) {
|
if (tab.children && tab.children.length) {
|
||||||
|
|||||||
32
install/ui/test/data/dnsconfig_mod.json
Normal file
32
install/ui/test/data/dnsconfig_mod.json
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"error": null,
|
||||||
|
"id": null,
|
||||||
|
"result": {
|
||||||
|
"result": {
|
||||||
|
"attributelevelrights": {
|
||||||
|
"aci": "rscwo",
|
||||||
|
"cn": "rscwo",
|
||||||
|
"idnsallowsyncptr": "rscwo",
|
||||||
|
"idnsforwarders": "rscwo",
|
||||||
|
"idnsforwardpolicy": "rscwo",
|
||||||
|
"idnspersistentsearch": "rscwo",
|
||||||
|
"idnszonerefresh": "rscwo",
|
||||||
|
"nsaccountlock": "rscwo",
|
||||||
|
"objectclass": "rscwo"
|
||||||
|
},
|
||||||
|
"cn": [
|
||||||
|
"dns"
|
||||||
|
],
|
||||||
|
"idnsforwarders": [
|
||||||
|
"2001:beef::1"
|
||||||
|
],
|
||||||
|
"objectclass": [
|
||||||
|
"idnsConfigObject",
|
||||||
|
"nsContainer",
|
||||||
|
"top"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"summary": null,
|
||||||
|
"value": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
33
install/ui/test/data/dnsconfig_show.json
Normal file
33
install/ui/test/data/dnsconfig_show.json
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
{
|
||||||
|
"error": null,
|
||||||
|
"id": null,
|
||||||
|
"result": {
|
||||||
|
"result": {
|
||||||
|
"attributelevelrights": {
|
||||||
|
"aci": "rscwo",
|
||||||
|
"cn": "rscwo",
|
||||||
|
"idnsallowsyncptr": "rscwo",
|
||||||
|
"idnsforwarders": "rscwo",
|
||||||
|
"idnsforwardpolicy": "rscwo",
|
||||||
|
"idnspersistentsearch": "rscwo",
|
||||||
|
"idnszonerefresh": "rscwo",
|
||||||
|
"nsaccountlock": "rscwo",
|
||||||
|
"objectclass": "rscwo"
|
||||||
|
},
|
||||||
|
"cn": [
|
||||||
|
"dns"
|
||||||
|
],
|
||||||
|
"dn": "cn=dns,dc=dev,dc=example,dc=com",
|
||||||
|
"idnsforwarders": [
|
||||||
|
"2001:beef::1"
|
||||||
|
],
|
||||||
|
"objectclass": [
|
||||||
|
"idnsConfigObject",
|
||||||
|
"nsContainer",
|
||||||
|
"top"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"summary": null,
|
||||||
|
"value": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -183,6 +183,9 @@
|
|||||||
"user": "User Options"
|
"user": "User Options"
|
||||||
},
|
},
|
||||||
"delegation": {},
|
"delegation": {},
|
||||||
|
"dnsconfig": {
|
||||||
|
"options": "Options"
|
||||||
|
},
|
||||||
"dnsrecord": {
|
"dnsrecord": {
|
||||||
"data": "Data",
|
"data": "Data",
|
||||||
"deleted_no_data": "DNS record was deleted because it contained no data.",
|
"deleted_no_data": "DNS record was deleted because it contained no data.",
|
||||||
|
|||||||
@@ -40,10 +40,9 @@ IPA.admin_navigation = function(spec) {
|
|||||||
{entity: 'hostgroup'},
|
{entity: 'hostgroup'},
|
||||||
{entity: 'netgroup'},
|
{entity: 'netgroup'},
|
||||||
{entity: 'service'},
|
{entity: 'service'},
|
||||||
{name:'dns',
|
{name:'dns', label: IPA.messages.tabs.dns, children:[
|
||||||
label: IPA.messages.tabs.dns,
|
{entity: 'dnszone'},
|
||||||
children:[
|
{entity: 'dnsconfig'},
|
||||||
{entity: 'dnszone', hidden:true},
|
|
||||||
{entity: 'dnsrecord', hidden:true}
|
{entity: 'dnsrecord', hidden:true}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -63,9 +62,9 @@ IPA.admin_navigation = function(spec) {
|
|||||||
{name:'automount',
|
{name:'automount',
|
||||||
label: IPA.messages.tabs.automount,
|
label: IPA.messages.tabs.automount,
|
||||||
children:[
|
children:[
|
||||||
{entity: 'automountlocation', hidden:true},
|
{entity: 'automountlocation', hidden:true, depth: -1},
|
||||||
{entity: 'automountmap', hidden: true},
|
{entity: 'automountmap', hidden: true, depth: -1},
|
||||||
{entity: 'automountkey', hidden: true}]},
|
{entity: 'automountkey', hidden: true, depth: -1}]},
|
||||||
{entity: 'pwpolicy'},
|
{entity: 'pwpolicy'},
|
||||||
{entity: 'krbtpolicy'},
|
{entity: 'krbtpolicy'},
|
||||||
{entity: 'selinuxusermap'},
|
{entity: 'selinuxusermap'},
|
||||||
|
|||||||
@@ -320,6 +320,9 @@ class i18n_messages(Command):
|
|||||||
},
|
},
|
||||||
"delegation": {
|
"delegation": {
|
||||||
},
|
},
|
||||||
|
"dnsconfig": {
|
||||||
|
"options": _("Options"),
|
||||||
|
},
|
||||||
"dnsrecord": {
|
"dnsrecord": {
|
||||||
"data": _("Data"),
|
"data": _("Data"),
|
||||||
"deleted_no_data": _("DNS record was deleted because it contained no data."),
|
"deleted_no_data": _("DNS record was deleted because it contained no data."),
|
||||||
|
|||||||
Reference in New Issue
Block a user