mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Add new webui plugin - ca
Whole new entity for CAs. https://fedorahosted.org/freeipa/ticket/5939 Reviewed-By: Fraser Tweedale <ftweedal@redhat.com> Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
This commit is contained in:
parent
f0915e6198
commit
6e78169e3b
@ -29,6 +29,7 @@ define([
|
|||||||
'./aci',
|
'./aci',
|
||||||
'./automember',
|
'./automember',
|
||||||
'./automount',
|
'./automount',
|
||||||
|
'./plugins/ca',
|
||||||
'./plugins/caacl',
|
'./plugins/caacl',
|
||||||
'./plugins/certprofile',
|
'./plugins/certprofile',
|
||||||
'./dns',
|
'./dns',
|
||||||
|
@ -142,6 +142,11 @@ var nav = {};
|
|||||||
entity: 'caacl',
|
entity: 'caacl',
|
||||||
facet: 'search',
|
facet: 'search',
|
||||||
hidden: true
|
hidden: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
entity: 'ca',
|
||||||
|
facet: 'search',
|
||||||
|
hidden: true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
91
install/ui/src/freeipa/plugins/ca.js
Normal file
91
install/ui/src/freeipa/plugins/ca.js
Normal file
@ -0,0 +1,91 @@
|
|||||||
|
//
|
||||||
|
// Copyright (C) 2016 FreeIPA Contributors see COPYING for license
|
||||||
|
//
|
||||||
|
|
||||||
|
define([
|
||||||
|
'../ipa',
|
||||||
|
'../jquery',
|
||||||
|
'../phases',
|
||||||
|
'../reg',
|
||||||
|
'../certificate'
|
||||||
|
],
|
||||||
|
function(IPA, $, phases, reg, cert) {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ca module
|
||||||
|
* @class plugins.ca
|
||||||
|
* @singleton
|
||||||
|
*/
|
||||||
|
var ca = IPA.ca = {};
|
||||||
|
|
||||||
|
var make_ca_spec = function() {
|
||||||
|
var spec = {
|
||||||
|
name: 'ca',
|
||||||
|
facets: [
|
||||||
|
{
|
||||||
|
$type: 'search',
|
||||||
|
disable_facet_tabs: false,
|
||||||
|
tabs_in_sidebar: true,
|
||||||
|
tab_label: '@mo:ca.label',
|
||||||
|
facet_groups: [cert.facet_group],
|
||||||
|
facet_group: 'certificates',
|
||||||
|
columns: [
|
||||||
|
'cn',
|
||||||
|
'ipacasubjectdn',
|
||||||
|
'description'
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
$type: 'details',
|
||||||
|
disable_facet_tabs: true,
|
||||||
|
fields: [
|
||||||
|
'cn',
|
||||||
|
{
|
||||||
|
$type: 'textarea',
|
||||||
|
name: 'description'
|
||||||
|
},
|
||||||
|
'ipacaid',
|
||||||
|
'ipacaissuerdn',
|
||||||
|
'ipacasubjectdn'
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
adder_dialog: {
|
||||||
|
fields: [
|
||||||
|
{
|
||||||
|
$type: 'text',
|
||||||
|
name: 'cn',
|
||||||
|
required: true
|
||||||
|
},
|
||||||
|
'ipacasubjectdn',
|
||||||
|
{
|
||||||
|
$type: 'textarea',
|
||||||
|
name: 'description'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
return spec;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* CA entity specification object
|
||||||
|
* @member plugins.ca
|
||||||
|
*/
|
||||||
|
ca.ca_spec = make_ca_spec();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Register entity
|
||||||
|
* @member plugins.ca
|
||||||
|
*/
|
||||||
|
ca.register = function() {
|
||||||
|
var e = reg.entity;
|
||||||
|
|
||||||
|
e.register({type: 'ca', spec: ca.ca_spec});
|
||||||
|
};
|
||||||
|
|
||||||
|
phases.on('registration', ca.register);
|
||||||
|
|
||||||
|
return ca;
|
||||||
|
});
|
Loading…
Reference in New Issue
Block a user