summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-02-23 17:15:42 -0600
committerAdam Young <ayoung@redhat.com>2011-03-02 12:04:19 -0500
commitd37bb6f925cace69f15c8e548a69121bfb00be5e (patch)
treea9ae2e4fa30f1ab53f8527ad47e921d94a0ea8dc
parent54b26270186422607ef52b9b408326744b2d86d1 (diff)
downloadfreeipa-d37bb6f925cace69f15c8e548a69121bfb00be5e.tar.gz
freeipa-d37bb6f925cace69f15c8e548a69121bfb00be5e.tar.xz
freeipa-d37bb6f925cace69f15c8e548a69121bfb00be5e.zip
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.
-rw-r--r--install/ui/sudocmd.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/install/ui/sudocmd.js b/install/ui/sudocmd.js
index b98f2d4dc..748ec4b88 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',