mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
WebUI: Add support of 'ipaautoprivategroups' LDAP attribute on 'ID Ranges' page
Add 'Auto private groups' field on 'Add ID range' form with the following options: true, false, hybrid. The field is optional and can be omitted. Its value can be also modified on 'Range Settings' page after the range is added. Ticket: https://pagure.io/freeipa/issue/8837 Signed-off-by: Serhii Tsymbaliuk <stsymbal@redhat.com> Reviewed-By: Rob Crittenden <rcritten@redhat.com> Reviewed-By: Florence Blanc-Renaud <flo@redhat.com> Reviewed-By: Armando Neto <abiagion@redhat.com>
This commit is contained in:
parent
208b9b4c7c
commit
6395d23947
@ -82,6 +82,13 @@ return {
|
||||
name: 'ipanttrusteddomainsid',
|
||||
label: '@i18n:objects.idrange.ipanttrusteddomainsid',
|
||||
title: '@mo-param:idrange:ipanttrusteddomainsid:label'
|
||||
},
|
||||
{
|
||||
name: 'ipaautoprivategroups',
|
||||
$type: 'select',
|
||||
label: '@i18n:objects.idrange.ipaautoprivategroups',
|
||||
title: '@mo-param:idrange:ipaautoprivategroups:label',
|
||||
options: IPA.create_options(['', 'true', 'false', 'hybrid'])
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -141,6 +148,13 @@ return {
|
||||
{
|
||||
name: 'ipanttrusteddomainname',
|
||||
enabled: false
|
||||
},
|
||||
{
|
||||
name: 'ipaautoprivategroups',
|
||||
$type: 'select',
|
||||
label: '@i18n:objects.idrange.ipaautoprivategroups',
|
||||
default_value: '',
|
||||
options: IPA.create_options(['', 'true', 'false', 'hybrid'])
|
||||
}
|
||||
],
|
||||
policies: [
|
||||
@ -210,6 +224,7 @@ IPA.idrange_adder_policy = function(spec) {
|
||||
var baserid_f = that.container.fields.get_field('ipabaserid');
|
||||
var secondarybaserid_f = that.container.fields.get_field('ipasecondarybaserid');
|
||||
var trusteddomainname_f = that.container.fields.get_field('ipanttrusteddomainname');
|
||||
var autoprivategroups_f = that.container.fields.get_field('ipaautoprivategroups');
|
||||
|
||||
var type_v = type_f.get_value()[0];
|
||||
var baserid_v = baserid_f.get_value()[0] || '';
|
||||
@ -224,9 +239,11 @@ IPA.idrange_adder_policy = function(spec) {
|
||||
disable(baserid_f);
|
||||
}
|
||||
require(trusteddomainname_f);
|
||||
enable(autoprivategroups_f);
|
||||
disable(secondarybaserid_f);
|
||||
} else {
|
||||
disable(trusteddomainname_f);
|
||||
disable(autoprivategroups_f);
|
||||
|
||||
if (IPA.trust_enabled) {
|
||||
require(baserid_f);
|
||||
|
@ -1236,6 +1236,7 @@ class i18n_messages(Command):
|
||||
"idrange": {
|
||||
"add": _("Add ID range"),
|
||||
"details": _("Range Settings"),
|
||||
"ipaautoprivategroups": _("Auto private groups"),
|
||||
"ipabaseid": _("Base ID"),
|
||||
"ipabaserid": _("Primary RID base"),
|
||||
"ipaidrangesize": _("Range size"),
|
||||
|
Loading…
Reference in New Issue
Block a user