diff options
Diffstat (limited to 'install/static')
21 files changed, 776 insertions, 31 deletions
diff --git a/install/static/Makefile.am b/install/static/Makefile.am index 0e3effeef..8e4981984 100644 --- a/install/static/Makefile.am +++ b/install/static/Makefile.am @@ -20,6 +20,8 @@ app_DATA = \ certificate.js \ group.js \ hbac.js \ + hbacsvc.js \ + hbacsvcgroup.js \ host.js \ hostgroup.js \ index.html \ @@ -29,6 +31,8 @@ app_DATA = \ service.js \ serverconfig.js \ sudorule.js \ + sudocmd.js \ + sudocmdgroup.js \ policy.js \ search.js \ rule.js \ diff --git a/install/static/hbac.js b/install/static/hbac.js index 12883efa3..a6162b8bf 100755 --- a/install/static/hbac.js +++ b/install/static/hbac.js @@ -152,7 +152,7 @@ function ipa_hbac_search_facet(spec) { var li = $('li[title=hbacsvc]', action_panel); li.click(function() { var state = {}; - state['entity'] = 'hbacsvc'; + state['hbac-entity'] = 'hbacsvc'; nav_push_state(state); return false; }); @@ -160,7 +160,7 @@ function ipa_hbac_search_facet(spec) { li = $('li[title=hbacsvcgroup]', action_panel); li.click(function() { var state = {}; - state['entity'] = 'hbacsvcgroup'; + state['hbac-entity'] = 'hbacsvcgroup'; nav_push_state(state); return false; }); diff --git a/install/static/hbacsvc.js b/install/static/hbacsvc.js index 13135da24..26a2e8a0a 100755 --- a/install/static/hbacsvc.js +++ b/install/static/hbacsvc.js @@ -100,24 +100,12 @@ function ipa_hbacsvc_search_facet(spec) { $('<li/>', { title: 'hbac', - text: 'HBAC Rules', - 'click': function() { - var state = {}; - state['entity'] = 'hbac'; - nav_push_state(state); - return false; - } + text: 'HBAC Rules' }).appendTo(ul); $('<li/>', { title: 'hbacsvcgroup', - text: 'HBAC Service Groups', - 'click': function() { - var state = {}; - state['entity'] = 'hbacsvcgroup'; - nav_push_state(state); - return false; - } + text: 'HBAC Service Groups' }).appendTo(ul); that.search_facet_create(container); @@ -126,10 +114,29 @@ function ipa_hbacsvc_search_facet(spec) { container.children().last().prepend( $('<h2/>', { 'html': 'HBAC Services' })); container.children().last().prepend('<br/><br/>'); + }; + that.setup = function(container) { + that.search_facet_setup(container); + var action_panel = that.get_action_panel(); + var li = $('li[title=hbac]', action_panel); + li.click(function() { + var state = {}; + state['hbac-entity'] = 'hbac'; + nav_push_state(state); + return false; + }); + + li = $('li[title=hbacsvcgroup]', action_panel); + li.click(function() { + var state = {}; + state['hbac-entity'] = 'hbacsvcgroup'; + nav_push_state(state); + return false; + }); }; return that; diff --git a/install/static/hbacsvcgroup.js b/install/static/hbacsvcgroup.js index 520f86004..056c8fab1 100755 --- a/install/static/hbacsvcgroup.js +++ b/install/static/hbacsvcgroup.js @@ -111,24 +111,12 @@ function ipa_hbacsvcgroup_search_facet(spec) { $('<li/>', { title: 'hbac', - text: 'HBAC Rules', - 'click': function() { - var state = {}; - state['entity'] = 'hbac'; - nav_push_state(state); - return false; - } + text: 'HBAC Rules' }).appendTo(ul); $('<li/>', { title: 'hbacsvc', - text: 'HBAC Services', - 'click': function() { - var state = {}; - state['entity'] = 'hbacsvc'; - nav_push_state(state); - return false; - } + text: 'HBAC Services' }).appendTo(ul); that.search_facet_create(container); @@ -140,6 +128,29 @@ function ipa_hbacsvcgroup_search_facet(spec) { }; + that.setup = function(container) { + + that.search_facet_setup(container); + + var action_panel = that.get_action_panel(); + + var li = $('li[title=hbac]', action_panel); + li.click(function() { + var state = {}; + state['hbac-entity'] = 'hbac'; + nav_push_state(state); + return false; + }); + + li = $('li[title=hbacsvc]', action_panel); + li.click(function() { + var state = {}; + state['hbac-entity'] = 'hbacsvc'; + nav_push_state(state); + return false; + }); + }; + return that; } diff --git a/install/static/index.html b/install/static/index.html index 643c076ca..a27201033 100644 --- a/install/static/index.html +++ b/install/static/index.html @@ -32,6 +32,8 @@ <script type="text/javascript" src="service.js"></script> <script type="text/javascript" src="serverconfig.js"></script> <script type="text/javascript" src="sudorule.js"></script> + <script type="text/javascript" src="sudocmd.js"></script> + <script type="text/javascript" src="sudocmdgroup.js"></script> <script type="text/javascript" src="policy.js"></script> diff --git a/install/static/navigation.js b/install/static/navigation.js index 6b4419c99..e437e569b 100644 --- a/install/static/navigation.js +++ b/install/static/navigation.js @@ -137,7 +137,8 @@ function _nav_update_tabs(nls, container) var entity_name = tab.name; // TODO: do not hard-code - if (entity_name == 'hbac' && nav_get_state('entity')) entity_name = nav_get_state('entity'); + if (entity_name == 'hbac' && nav_get_state('hbac-entity')) entity_name = nav_get_state('hbac-entity'); + if (entity_name == 'sudorule' && nav_get_state('sudo-entity')) entity_name = nav_get_state('sudo-entity'); var entity = IPA.get_entity(entity_name); entity.setup(container2); diff --git a/install/static/sudocmd.js b/install/static/sudocmd.js new file mode 100755 index 000000000..2ac947fcf --- /dev/null +++ b/install/static/sudocmd.js @@ -0,0 +1,175 @@ +/* Authors: + * Endi Sukma Dewata <edewata@redhat.com> + * + * Copyright (C) 2010 Red Hat + * see file 'COPYING' for use and warranty information + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; version 2 only + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +/* REQUIRES: ipa.js, details.js, search.js, add.js, entity.js */ + +function ipa_sudocmd() { + + var that = ipa_entity({ + 'name': 'sudocmd' + }); + + that.init = function() { + + var dialog = ipa_sudocmd_add_dialog({ + 'name': 'add', + 'title': 'Add New SUDO Command' + }); + that.add_dialog(dialog); + dialog.init(); + + var facet = ipa_sudocmd_search_facet({ + 'name': 'search', + 'label': 'Search' + }); + that.add_facet(facet); + + facet = ipa_sudocmd_details_facet({ + 'name': 'details', + 'label': 'Details' + }); + that.add_facet(facet); + + that.entity_init(); + }; + + return that; +} + +IPA.add_entity(ipa_sudocmd()); + +function ipa_sudocmd_add_dialog(spec) { + + spec = spec || {}; + + var that = ipa_add_dialog(spec); + + that.superior_init = that.superior('init'); + + that.init = function() { + + this.superior_init(); + + this.add_field(ipa_text_widget({name:'sudocmd', label:'Command', undo: false})); + this.add_field(ipa_text_widget({name:'description', label:'Description', undo: false})); + }; + + return that; +} + +function ipa_sudocmd_search_facet(spec) { + + spec = spec || {}; + + var that = ipa_search_facet(spec); + + that.get_action_panel = function() { + return $('#sudorule .action-panel'); + }; + + that.init = function() { + + that.create_column({name:'sudocmd', label:'Command', primary_key: true}); + that.create_column({name:'description', label:'Description'}); + + that.search_facet_init(); + }; + + that.create = function(container) { + + var action_panel = that.get_action_panel(); + + var ul = $('ul', action_panel); + + $('<li/>', { + title: 'sudorule', + text: 'SUDO Rules' + }).appendTo(ul); + + $('<li/>', { + title: 'sudocmdgroup', + text: 'SUDO Command Groups' + }).appendTo(ul); + + that.search_facet_create(container); + + // TODO: replace with IPA.metadata[that.entity_name].label + container.children().last().prepend( + $('<h2/>', { 'html': 'SUDO Commands' })); + container.children().last().prepend('<br/><br/>'); + }; + + that.setup = function(container) { + + that.search_facet_setup(container); + + var action_panel = that.get_action_panel(); + + var li = $('li[title=sudorule]', action_panel); + li.click(function() { + var state = {}; + state['sudo-entity'] = 'sudorule'; + nav_push_state(state); + return false; + }); + + li = $('li[title=sudocmdgroup]', action_panel); + li.click(function() { + var state = {}; + state['sudo-entity'] = 'sudocmdgroup'; + nav_push_state(state); + return false; + }); + }; + + return that; +} + + +function ipa_sudocmd_details_facet(spec) { + + spec = spec || {}; + + var that = ipa_details_facet(spec); + + that.superior_init = that.superior('init'); + that.superior_create = that.superior('create'); + that.superior_setup = that.superior('setup'); + + that.get_action_panel = function() { + return $('#sudorule .action-panel'); + }; + + that.init = function() { + + var section = ipa_details_list_section({ + 'name': 'general', + 'label': 'General' + }); + that.add_section(section); + + section.create_field({ 'name': 'sudocmd', 'label': 'Command' }); + section.create_field({ 'name': 'description', 'label': 'Description' }); + + that.superior_init(); + }; + + return that; +}
\ No newline at end of file diff --git a/install/static/sudocmdgroup.js b/install/static/sudocmdgroup.js new file mode 100755 index 000000000..0a193afab --- /dev/null +++ b/install/static/sudocmdgroup.js @@ -0,0 +1,196 @@ +/* Authors: + * Endi Sukma Dewata <edewata@redhat.com> + * + * Copyright (C) 2010 Red Hat + * see file 'COPYING' for use and warranty information + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; version 2 only + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +/* REQUIRES: ipa.js, details.js, search.js, add.js, entity.js */ + +function ipa_sudocmdgroup() { + + var that = ipa_entity({ + 'name': 'sudocmdgroup' + }); + + that.init = function() { + + that.create_association({ + 'name': 'sudocmd', + 'add_method': 'add_member', + 'delete_method': 'remove_member' + }); + + var dialog = ipa_sudocmdgroup_add_dialog({ + 'name': 'add', + 'title': 'Add New SUDO Command Group' + }); + that.add_dialog(dialog); + dialog.init(); + + var facet = ipa_sudocmdgroup_search_facet({ + 'name': 'search', + 'label': 'Search' + }); + that.add_facet(facet); + + facet = ipa_sudocmdgroup_details_facet({ + 'name': 'details', + 'label': 'Details' + }); + that.add_facet(facet); + + facet = ipa_sudocmdgroup_association_facet({ + 'name': 'associate' + }); + that.add_facet(facet); + + that.entity_init(); + }; + + return that; +} + +IPA.add_entity(ipa_sudocmdgroup()); + +function ipa_sudocmdgroup_add_dialog(spec) { + + spec = spec || {}; + + var that = ipa_add_dialog(spec); + + that.superior_init = that.superior('init'); + + that.init = function() { + + this.superior_init(); + + this.add_field(ipa_text_widget({name:'cn', label:'Name', undo: false})); + this.add_field(ipa_text_widget({name:'description', label:'Description', undo: false})); + }; + + return that; +} + +function ipa_sudocmdgroup_search_facet(spec) { + + spec = spec || {}; + + var that = ipa_search_facet(spec); + + that.get_action_panel = function() { + return $('#sudorule .action-panel'); + }; + + that.init = function() { + + that.create_column({name:'cn', label:'Group', primary_key: true}); + that.create_column({name:'description', label:'Description'}); + + that.search_facet_init(); + }; + + that.create = function(container) { + + var action_panel = that.get_action_panel(); + + var ul = $('ul', action_panel); + + $('<li/>', { + title: 'sudorule', + text: 'SUDO Rules' + }).appendTo(ul); + + $('<li/>', { + title: 'sudocmd', + text: 'SUDO Command' + }).appendTo(ul); + + that.search_facet_create(container); + + // TODO: replace with IPA.metadata[that.entity_name].label + container.children().last().prepend( + $('<h2/>', { 'html': 'SUDO Command Groups' })); + container.children().last().prepend('<br/><br/>'); + + }; + + that.setup = function(container) { + + that.search_facet_setup(container); + + var action_panel = that.get_action_panel(); + + var li = $('li[title=sudorule]', action_panel); + li.click(function() { + var state = {}; + state['sudo-entity'] = 'sudorule'; + nav_push_state(state); + return false; + }); + + li = $('li[title=sudocmd]', action_panel); + li.click(function() { + var state = {}; + state['sudo-entity'] = 'sudocmd'; + nav_push_state(state); + return false; + }); + }; + + return that; +} + + +function ipa_sudocmdgroup_details_facet(spec) { + + spec = spec || {}; + + var that = ipa_details_facet(spec); + + that.get_action_panel = function() { + return $('#sudorule .action-panel'); + }; + + that.init = function() { + + var section = ipa_details_list_section({ + 'name': 'general', + 'label': 'General' + }); + that.add_section(section); + + section.create_field({ 'name': 'cn', 'label': 'Name' }); + section.create_field({ 'name': 'description', 'label': 'Description' }); + + that.details_facet_init(); + }; + + return that; +} + +function ipa_sudocmdgroup_association_facet(spec) { + + spec = spec || {}; + + var that = ipa_association_facet(spec); + + that.get_action_panel = function() { + return $('#sudorule .action-panel'); + }; + + return that; +}
\ No newline at end of file diff --git a/install/static/sudorule.js b/install/static/sudorule.js index 60cf4d3e9..f936ebcde 100755 --- a/install/static/sudorule.js +++ b/install/static/sudorule.js @@ -92,6 +92,20 @@ function ipa_sudorule_search_facet(spec) { that.create = function(container) { + var action_panel = that.get_action_panel(); + + var ul = $('ul', action_panel); + + $('<li/>', { + title: 'sudocmd', + text: 'SUDO Commands' + }).appendTo(ul); + + $('<li/>', { + title: 'sudocmdgroup', + text: 'SUDO Command Groups' + }).appendTo(ul); + that.search_facet_create(container); // TODO: replace with IPA.metadata[that.entity_name].label @@ -101,6 +115,29 @@ function ipa_sudorule_search_facet(spec) { }; + that.setup = function(container) { + + that.search_facet_setup(container); + + var action_panel = that.get_action_panel(); + + var li = $('li[title=sudocmd]', action_panel); + li.click(function() { + var state = {}; + state['sudo-entity'] = 'sudocmd'; + nav_push_state(state); + return false; + }); + + li = $('li[title=sudocmdgroup]', action_panel); + li.click(function() { + var state = {}; + state['sudo-entity'] = 'sudocmdgroup'; + nav_push_state(state); + return false; + }); + }; + return that; } diff --git a/install/static/test/data/sudocmd_add.json b/install/static/test/data/sudocmd_add.json new file mode 100644 index 000000000..6de1def49 --- /dev/null +++ b/install/static/test/data/sudocmd_add.json @@ -0,0 +1,21 @@ +{ + "error": null, + "id": 0, + "result": { + "result": { + "dn": "sudocmd=/usr/bin/less,cn=sudocmds,cn=accounts,dc=dev,dc=example,dc=com", + "ipauniqueid": [ + "09e4ab26-f456-11df-bb95-00163e72f2d9" + ], + "objectclass": [ + "ipaobject", + "ipasudocmd" + ], + "sudocmd": [ + "/usr/bin/less" + ] + }, + "summary": "Added sudo command \"/usr/bin/less\"", + "value": "/usr/bin/less" + } +} diff --git a/install/static/test/data/sudocmd_del.json b/install/static/test/data/sudocmd_del.json new file mode 100644 index 000000000..d6bc5ad00 --- /dev/null +++ b/install/static/test/data/sudocmd_del.json @@ -0,0 +1,9 @@ +{ + "error": null, + "id": 0, + "result": { + "result": true, + "summary": "Deleted sudo command \"/usr/bin/less\"", + "value": "/usr/bin/less" + } +} diff --git a/install/static/test/data/sudocmd_find.json b/install/static/test/data/sudocmd_find.json new file mode 100644 index 000000000..639877156 --- /dev/null +++ b/install/static/test/data/sudocmd_find.json @@ -0,0 +1,23 @@ +{ + "error": null, + "id": 0, + "result": { + "count": 2, + "result": [ + { + "dn": "sudocmd=/usr/bin/more,cn=sudocmds,cn=accounts,dc=dev,dc=example,dc=com", + "sudocmd": [ + "/usr/bin/more" + ] + }, + { + "dn": "sudocmd=/usr/bin/less,cn=sudocmds,cn=accounts,dc=dev,dc=example,dc=com", + "sudocmd": [ + "/usr/bin/less" + ] + } + ], + "summary": "2 sudo command matched", + "truncated": false + } +} diff --git a/install/static/test/data/sudocmd_mod.json b/install/static/test/data/sudocmd_mod.json new file mode 100644 index 000000000..82919cd2d --- /dev/null +++ b/install/static/test/data/sudocmd_mod.json @@ -0,0 +1,31 @@ +{ + "error": null, + "id": 0, + "result": { + "result": { + "attributelevelrights": { + "aci": "rscwo", + "description": "rscwo", + "ipauniqueid": "rsc", + "memberof": "rsc", + "nsaccountlock": "rscwo", + "sudocmd": "rscwo" + }, + "description": [ + "opposite of more" + ], + "ipauniqueid": [ + "06708d0e-f454-11df-9273-00163e72f2d9" + ], + "objectclass": [ + "ipaobject", + "ipasudocmd" + ], + "sudocmd": [ + "/usr/bin/less" + ] + }, + "summary": "Modified sudo command \"/usr/bin/less\"", + "value": "/usr/bin/less" + } +} diff --git a/install/static/test/data/sudocmd_show.json b/install/static/test/data/sudocmd_show.json new file mode 100644 index 000000000..f9eacc39b --- /dev/null +++ b/install/static/test/data/sudocmd_show.json @@ -0,0 +1,29 @@ +{ + "error": null, + "id": 0, + "result": { + "result": { + "attributelevelrights": { + "aci": "rscwo", + "description": "rscwo", + "ipauniqueid": "rsc", + "memberof": "rsc", + "nsaccountlock": "rscwo", + "sudocmd": "rscwo" + }, + "dn": "sudocmd=/usr/bin/less,cn=sudocmds,cn=accounts,dc=dev,dc=example,dc=com", + "ipauniqueid": [ + "06708d0e-f454-11df-9273-00163e72f2d9" + ], + "objectclass": [ + "ipaobject", + "ipasudocmd" + ], + "sudocmd": [ + "/usr/bin/less" + ] + }, + "summary": null, + "value": "/usr/bin/less" + } +} diff --git a/install/static/test/data/sudocmdgroup_add.json b/install/static/test/data/sudocmdgroup_add.json new file mode 100644 index 000000000..951a3a917 --- /dev/null +++ b/install/static/test/data/sudocmdgroup_add.json @@ -0,0 +1,26 @@ +{ + "error": null, + "id": 0, + "result": { + "result": { + "cn": [ + "group1" + ], + "description": [ + "Group 1" + ], + "dn": "cn=group1,cn=sudocmdgroups,cn=accounts,dc=dev,dc=example,dc=com", + "ipauniqueid": [ + "1a8f4852-f459-11df-815c-00163e72f2d9" + ], + "objectclass": [ + "ipaobject", + "ipasudocmdgrp", + "groupOfNames", + "top" + ] + }, + "summary": "Added sudo command group \"group1\"", + "value": "group1" + } +} diff --git a/install/static/test/data/sudocmdgroup_add_member.json b/install/static/test/data/sudocmdgroup_add_member.json new file mode 100644 index 000000000..0646f7251 --- /dev/null +++ b/install/static/test/data/sudocmdgroup_add_member.json @@ -0,0 +1,26 @@ +{ + "error": null, + "id": 0, + "result": { + "completed": 2, + "failed": { + "member": { + "sudocmd": [], + "sudocmdgroup": [] + } + }, + "result": { + "cn": [ + "group1" + ], + "description": [ + "SUDO Group 1" + ], + "dn": "cn=group1,cn=sudocmdgroups,cn=accounts,dc=dev,dc=example,dc=com", + "member_sudocmd": [ + "/usr/bin/more", + "/usr/bin/less" + ] + } + } +} diff --git a/install/static/test/data/sudocmdgroup_del.json b/install/static/test/data/sudocmdgroup_del.json new file mode 100644 index 000000000..24c7ab692 --- /dev/null +++ b/install/static/test/data/sudocmdgroup_del.json @@ -0,0 +1,9 @@ +{ + "error": null, + "id": 0, + "result": { + "result": true, + "summary": "Deleted sudo command group \"group1\"", + "value": "group1" + } +} diff --git a/install/static/test/data/sudocmdgroup_find.json b/install/static/test/data/sudocmdgroup_find.json new file mode 100644 index 000000000..fb2effd23 --- /dev/null +++ b/install/static/test/data/sudocmdgroup_find.json @@ -0,0 +1,33 @@ +{ + "error": null, + "id": 0, + "result": { + "count": 2, + "result": [ + { + "cn": [ + "group1" + ], + "description": [ + "Group 1" + ], + "dn": "cn=group1,cn=sudocmdgroups,cn=accounts,dc=dev,dc=example,dc=com", + "member_sudocmd": [ + "/usr/bin/more", + "/usr/bin/less" + ] + }, + { + "cn": [ + "group2" + ], + "description": [ + "Group 2" + ], + "dn": "cn=group2,cn=sudocmdgroups,cn=accounts,dc=dev,dc=example,dc=com" + } + ], + "summary": "2 sudo command groups matched", + "truncated": false + } +} diff --git a/install/static/test/data/sudocmdgroup_mod.json b/install/static/test/data/sudocmdgroup_mod.json new file mode 100644 index 000000000..d0eb3226b --- /dev/null +++ b/install/static/test/data/sudocmdgroup_mod.json @@ -0,0 +1,39 @@ +{ + "error": null, + "id": 0, + "result": { + "result": { + "attributelevelrights": { + "aci": "rscwo", + "businesscategory": "rscwo", + "cn": "rscwo", + "description": "rscwo", + "ipauniqueid": "rsc", + "member": "rscwo", + "nsaccountlock": "rscwo", + "o": "rscwo", + "objectclass": "rscwo", + "ou": "rscwo", + "owner": "rscwo", + "seealso": "rscwo" + }, + "cn": [ + "group1" + ], + "description": [ + "SUDO Group 1" + ], + "ipauniqueid": [ + "1a8f4852-f459-11df-815c-00163e72f2d9" + ], + "objectclass": [ + "ipaobject", + "ipasudocmdgrp", + "groupOfNames", + "top" + ] + }, + "summary": "Modified sudo command group \"group1\"", + "value": "group1" + } +} diff --git a/install/static/test/data/sudocmdgroup_remove_member.json b/install/static/test/data/sudocmdgroup_remove_member.json new file mode 100644 index 000000000..55144b9c6 --- /dev/null +++ b/install/static/test/data/sudocmdgroup_remove_member.json @@ -0,0 +1,22 @@ +{ + "error": null, + "id": 0, + "result": { + "completed": 2, + "failed": { + "member": { + "sudocmd": [], + "sudocmdgroup": [] + } + }, + "result": { + "cn": [ + "group1" + ], + "description": [ + "SUDO Group 1" + ], + "dn": "cn=group1,cn=sudocmdgroups,cn=accounts,dc=dev,dc=example,dc=com" + } + } +} diff --git a/install/static/test/data/sudocmdgroup_show.json b/install/static/test/data/sudocmdgroup_show.json new file mode 100644 index 000000000..f93ddaa67 --- /dev/null +++ b/install/static/test/data/sudocmdgroup_show.json @@ -0,0 +1,44 @@ +{ + "error": null, + "id": 0, + "result": { + "result": { + "attributelevelrights": { + "aci": "rscwo", + "businesscategory": "rscwo", + "cn": "rscwo", + "description": "rscwo", + "ipauniqueid": "rsc", + "member": "rscwo", + "nsaccountlock": "rscwo", + "o": "rscwo", + "objectclass": "rscwo", + "ou": "rscwo", + "owner": "rscwo", + "seealso": "rscwo" + }, + "cn": [ + "group1" + ], + "description": [ + "Group 1" + ], + "dn": "cn=group1,cn=sudocmdgroups,cn=accounts,dc=dev,dc=example,dc=com", + "ipauniqueid": [ + "d99989a6-f459-11df-9273-00163e72f2d9" + ], + "member_sudocmd": [ + "/usr/bin/more", + "/usr/bin/less" + ], + "objectclass": [ + "ipaobject", + "ipasudocmdgrp", + "groupOfNames", + "top" + ] + }, + "summary": null, + "value": "group1" + } +}
\ No newline at end of file |