summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2010-05-04 15:28:32 -0400
committerRob Crittenden <rcritten@redhat.com>2010-05-05 14:58:01 -0400
commitfa59c8b9d33853f1676ea5c872451e088e83a8d3 (patch)
tree0227b96285bc22ec3eee20154f38d485e489a649 /ipalib
parent92e350ca0a1fda0dc9fe6e073dd7afe19a62d9ec (diff)
downloadfreeipa-fa59c8b9d33853f1676ea5c872451e088e83a8d3.tar.gz
freeipa-fa59c8b9d33853f1676ea5c872451e088e83a8d3.tar.xz
freeipa-fa59c8b9d33853f1676ea5c872451e088e83a8d3.zip
Increase the attributes we display by default and fix up some labels.
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/plugins/hbac.py10
1 files 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):