summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ipalib/plugins/sudorule.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/ipalib/plugins/sudorule.py b/ipalib/plugins/sudorule.py
index ff39fb9f5..0005e136f 100644
--- a/ipalib/plugins/sudorule.py
+++ b/ipalib/plugins/sudorule.py
@@ -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'),