summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/sudorule.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/plugins/sudorule.py')
-rw-r--r--ipalib/plugins/sudorule.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/ipalib/plugins/sudorule.py b/ipalib/plugins/sudorule.py
index 3d6bc7042..59beed4e8 100644
--- a/ipalib/plugins/sudorule.py
+++ b/ipalib/plugins/sudorule.py
@@ -271,6 +271,11 @@ class sudorule(LDAPObject):
label=_('User Groups'),
flags=['no_create', 'no_update', 'no_search'],
),
+ Str('externaluser?', validate_externaluser,
+ cli_name='externaluser',
+ label=_('External User'),
+ doc=_('External User the rule applies to (sudorule-find only)'),
+ ),
Str('memberhost_host?',
label=_('Hosts'),
flags=['no_create', 'no_update', 'no_search'],
@@ -285,6 +290,7 @@ class sudorule(LDAPObject):
flags=['no_create', 'no_update', 'no_search'],
multivalue=True,
),
+ external_host_param,
Str('memberallowcmd_sudocmd?',
label=_('Sudo Allow Commands'),
flags=['no_create', 'no_update', 'no_search'],
@@ -311,11 +317,6 @@ class sudorule(LDAPObject):
doc=_('Run as any user within a specified group'),
flags=['no_create', 'no_update', 'no_search'],
),
- Str('externaluser?', validate_externaluser,
- cli_name='externaluser',
- label=_('External User'),
- doc=_('External User the rule applies to (sudorule-find only)'),
- ),
Str('ipasudorunasextuser?', validate_runasextuser,
cli_name='runasexternaluser',
label=_('RunAs External User'),
@@ -327,6 +328,11 @@ class sudorule(LDAPObject):
doc=_('External Groups of users that the command can run as'),
flags=['no_create', 'no_update', 'no_search'],
),
+ Str('ipasudorunasgroup_group?',
+ label=_('RunAs Groups'),
+ doc=_('Run with the gid of a specified POSIX group'),
+ flags=['no_create', 'no_update', 'no_search'],
+ ),
Str('ipasudorunasextgroup?', validate_runasextgroup,
cli_name='runasexternalgroup',
label=_('RunAs External Group'),
@@ -336,12 +342,6 @@ class sudorule(LDAPObject):
label=_('Sudo Option'),
flags=['no_create', 'no_update', 'no_search'],
),
- Str('ipasudorunasgroup_group?',
- label=_('RunAs Groups'),
- doc=_('Run with the gid of a specified POSIX group'),
- flags=['no_create', 'no_update', 'no_search'],
- ),
- external_host_param,
)
order_not_unique_msg = _(