Coverage for ipalib/plugins/role : 100%
        
        
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: # Rob Crittenden <rcritten@redhat.com> # Pavel Zuna <pzuna@redhat.com> # # Copyright (C) 2009 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/>. 
 
 Roles 
 A role is used for fine-grained delegation. A permission grants the ability to perform given low-level tasks (add a user, modify a group, etc.). A privilege combines one or more permissions into a higher-level abstraction such as useradmin. A useradmin would be able to add, delete and modify users. 
 Privileges are assigned to Roles. 
 Users, groups, hosts and hostgroups may be members of a Role. 
 Roles can not contain other roles. 
 EXAMPLES: 
 Add a new role: ipa role-add --desc="Junior-level admin" junioradmin 
 Add some privileges to this role: ipa role-add-privilege --privileges=addusers junioradmin ipa role-add-privilege --privileges=change_password junioradmin ipa role-add-privilege --privileges=add_user_to_default_group junioradmin 
 Add a group of users to this role: ipa group-add --desc="User admins" useradmins ipa role-add-member --groups=useradmins junioradmin 
 Display information about a role: ipa role-show junioradmin 
 The result of this is that any users in the group 'junioradmin' can add users, reset passwords or add a user to the default IPA user group. """) 
 """ Role object. """ 'memberindirect', 'memberofindirect', ] 'member': ['user', 'group', 'host', 'hostgroup'], 'memberof': ['privilege'], } 'member': ['privilege'], } 
 
 Str('cn', cli_name='name', label=_('Role name'), primary_key=True, ), Str('description', cli_name='desc', label=_('Description'), doc=_('A description of this role-group'), ), ) 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 '%(count)d role matched', '%(count)d roles matched', 0 ) 
 
 
 
 
 
 
 
 
 
 
 
 
 
 output.Entry('result'), output.Output('failed', type=dict, doc=_('Members that could not be added'), ), output.Output('completed', type=int, doc=_('Number of privileges added'), ), ) 
 
 
 
 
 output.Entry('result'), output.Output('failed', type=dict, doc=_('Members that could not be added'), ), output.Output('completed', type=int, doc=_('Number of privileges removed'), ), ) 
  |