mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-25 16:31:08 -06:00
Adding user/host category and ipaenabledflag https://fedorahosted.org/freeipa/ticket/570 This patch Addresses items: 1. The UI needs a rule status with values active & inactive. The CLI doesn't have this attribute. HBAC has ipaenabledflag attribute which can be managed using hbac-enable/disable operations. 2. The UI needs a user category for the "Who" section. The CLI doesn't have this attribute. HBAC has usercategory attribute which can be managed using hbac-add/mod operations. 3. The UI needs a host category for the "Access this host" section. The CLI doesn't have this attribute. HBAC has hostcategory attribute which can be managed using hbac-add/mod operations.
This commit is contained in:
parent
e1d6f9c6b9
commit
cdf360151b
@ -58,6 +58,22 @@ class sudorule(LDAPObject):
|
||||
cli_name='desc',
|
||||
label=_('Description'),
|
||||
),
|
||||
Flag('ipaenabledflag?',
|
||||
label=_('Enabled'),
|
||||
flags=['no_create', 'no_update', 'no_search'],
|
||||
),
|
||||
StrEnum('usercategory?',
|
||||
cli_name='usercat',
|
||||
label=_('User category'),
|
||||
doc=_('User category the rule applies to'),
|
||||
values=(u'all', ),
|
||||
),
|
||||
StrEnum('hostcategory?',
|
||||
cli_name='hostcat',
|
||||
label=_('Host category'),
|
||||
doc=_('Host category the rule applies to'),
|
||||
values=(u'all', ),
|
||||
),
|
||||
StrEnum('cmdcategory?',
|
||||
cli_name='cmdcat',
|
||||
label=_('Command category'),
|
||||
|
Loading…
Reference in New Issue
Block a user