Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# Authors: # Jr Aquino <jr.aquino@citrixonline.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, either version 3 of the License, or # (at your option) any later version. # # 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, see <http://www.gnu.org/licenses/>.
Sudo Commands
Commands used as building blocks for sudo
EXAMPLES:
Create a new command ipa sudocmd-add --desc='For reading log files' /usr/bin/less
Remove a command ipa sudocmd-del /usr/bin/less
""")
""" Sudo Command object. """ # object_class_config = 'ipahostobjectclasses' 'sudocmd', 'description', ] 'sudocmd', 'description', 'memberof', ] 'memberof': ['sudocmdgroup'], }
Str('sudocmd', cli_name='command', label=_('Sudo Command'), primary_key=True, ), Str('description?', cli_name='desc', label=_('Description'), doc=_('A description of this command'), ), )
keys[-1] = keys[-1][:-1] 'sudocmd', keys[-1], self.object_class, [''], DN(self.container_dn, api.env.basedn) )
ldap.make_filter_from_attr(attr, dn) for attr in ('memberallowcmd', 'memberdenycmd')] (filter, ldap.make_filter_from_attr('objectClass', 'ipasudorule')), ldap.MATCH_ALL) filter, ['cn'], base_dn=DN(api.env.container_sudorule, api.env.basedn)) else:
key=keys[0], label='sudorule', dependent=', '.join(dependent_sudorules))
'%(count)d Sudo Command matched', '%(count)d Sudo Commands matched', 0 )
|