Increase the attributes we display by default and fix up some labels.

This commit is contained in:
Rob Crittenden 2010-05-04 15:28:32 -04:00
parent 92e350ca0a
commit fa59c8b9d3

View File

@ -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):