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:
Endi S. Dewata 2011-02-23 17:15:42 -06:00 committed by Adam Young
parent 54b2627018
commit d37bb6f925

View File

@ -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',