From fa59c8b9d33853f1676ea5c872451e088e83a8d3 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Tue, 4 May 2010 15:28:32 -0400 Subject: Increase the attributes we display by default and fix up some labels. --- ipalib/plugins/hbac.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ipalib/plugins/hbac.py b/ipalib/plugins/hbac.py index b8dacc822..7a76f72cc 100644 --- a/ipalib/plugins/hbac.py +++ b/ipalib/plugins/hbac.py @@ -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): -- cgit