mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 07:33:27 -06:00
d09389ab6f
"Extending FreeIPA" is a developer guide of FreeIPA core framework. Please make sure to improve the guide every time parts of the core framework are affected by your changes. This document ideally should correspond to the current state of the framework. The Guide is written using Emacs Org Mode but can be edited with any plain text editing tool. Emacs is only required to convert it to distribution formats like HTML and TXT. See guide/Makefile for building the guide and README for details of the build environment.
63 lines
1.6 KiB
JavaScript
63 lines
1.6 KiB
JavaScript
IPA.netgroup = {};
|
|
|
|
IPA.netgroup.entity = function(spec) {
|
|
var that = IPA.entity(spec);
|
|
that.init = function(params) {
|
|
params.builder.search_facet({
|
|
columns: [
|
|
'cn',
|
|
'description'
|
|
]
|
|
}).
|
|
details_facet({
|
|
sections: [
|
|
{
|
|
name: 'identity',
|
|
fields: [
|
|
'cn',
|
|
{
|
|
factory: IPA.textarea_widget,
|
|
name: 'description'
|
|
},
|
|
'nisdomainname'
|
|
]
|
|
}
|
|
]
|
|
}).
|
|
association_facet({
|
|
name: 'memberhost_host',
|
|
facet_group: 'member'
|
|
}).
|
|
association_facet({
|
|
name: 'memberhost_hostgroup',
|
|
facet_group: 'member'
|
|
}).
|
|
association_facet({
|
|
name: 'memberuser_user',
|
|
facet_group: 'member'
|
|
}).
|
|
association_facet({
|
|
name: 'memberuser_group',
|
|
facet_group: 'member'
|
|
}).
|
|
association_facet({
|
|
name: 'memberof_netgroup',
|
|
associator: IPA.serial_associator
|
|
}).
|
|
standard_association_facets().
|
|
adder_dialog({
|
|
fields: [
|
|
'cn',
|
|
{
|
|
factory: IPA.textarea_widget,
|
|
name: 'description'
|
|
}
|
|
]
|
|
});
|
|
};
|
|
|
|
return that;
|
|
};
|
|
|
|
IPA.register('netgroup', IPA.netgroup.entity);
|