mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-30 10:47:08 -06:00
Fixed attribute for SUDO command group membership.
The correct attribute name for SUDO command group membership is memberof_sudocmdgroup and it contains the group name instead of dn.
This commit is contained in:
parent
54b2627018
commit
d37bb6f925
@ -115,7 +115,7 @@ IPA.sudocmd_details_facet = function (spec) {
|
||||
that.add_section(section);
|
||||
|
||||
var field = IPA.sudocmd_member_sudocmdgroup_table_widget({
|
||||
'name': 'memberof',
|
||||
'name': 'memberof_sudocmdgroup',
|
||||
'label': IPA.messages.objects.sudocmd.groups,
|
||||
'other_entity': 'sudocmdgroup',
|
||||
'save_values': false
|
||||
@ -194,10 +194,7 @@ IPA.sudocmd_member_sudocmdgroup_table_widget = function (spec) {
|
||||
});
|
||||
|
||||
for (var i=0; i<that.values.length; i++) {
|
||||
var dn = that.values[i];
|
||||
var j = dn.indexOf('=');
|
||||
var k = dn.indexOf(',');
|
||||
var value = dn.substring(j+1, k);
|
||||
var value = that.values[i];
|
||||
|
||||
var command = IPA.command({
|
||||
'method': that.other_entity+'_show',
|
||||
|
Loading…
Reference in New Issue
Block a user