mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-25 08:21:05 -06:00
Increase the attributes we display by default and fix up some labels.
This commit is contained in:
parent
92e350ca0a
commit
fa59c8b9d3
@ -35,7 +35,8 @@ class hbac(LDAPObject):
|
||||
object_class = ['ipaassociation', 'ipahbacrule']
|
||||
default_attributes = [
|
||||
'cn', 'accessruletype', 'ipaenabledflag', 'servicename',
|
||||
'accesstime', 'description',
|
||||
'accesstime', 'description', 'usercategory', 'hostcategory',
|
||||
'sourcehostcategory', 'ipaenabledflag',
|
||||
|
||||
]
|
||||
uuid_attribute = 'ipauniqueid'
|
||||
@ -55,7 +56,8 @@ class hbac(LDAPObject):
|
||||
),
|
||||
StrEnum('accessruletype',
|
||||
cli_name='type',
|
||||
label=_('Rule type (allow or deny)'),
|
||||
doc=_('Rule type (allow or deny)'),
|
||||
label=_('Rule type'),
|
||||
values=(u'allow', u'deny'),
|
||||
),
|
||||
Str('servicename?',
|
||||
@ -90,6 +92,10 @@ class hbac(LDAPObject):
|
||||
cli_name='desc',
|
||||
label=_('Description'),
|
||||
),
|
||||
Flag('ipaenabledflag?',
|
||||
label=_('Enabled'),
|
||||
flags=['no_create', 'no_update', 'no_search'],
|
||||
),
|
||||
)
|
||||
|
||||
def get_dn(self, *keys, **kwargs):
|
||||
|
Loading…
Reference in New Issue
Block a user