The correct attribute name for SUDO command group membership is memberof_sudocmdgroup and it contains the group name instead of dn.
-- Endi S. Dewata
From db1bb27fe8fd3f04ae976e2b0ab6444e033299d5 Mon Sep 17 00:00:00 2001 From: Endi S. Dewata <[email protected]> Date: Wed, 23 Feb 2011 17:15:42 -0600 Subject: [PATCH] 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. --- install/ui/sudocmd.js | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/install/ui/sudocmd.js b/install/ui/sudocmd.js index b98f2d4dc9a33894cf69dd4df981437c7482bbf9..748ec4b8862aa94fd9346e3a155e44ed52f3f4ca 100644 --- a/install/ui/sudocmd.js +++ b/install/ui/sudocmd.js @@ -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', -- 1.6.6.1
_______________________________________________ Freeipa-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/freeipa-devel
