summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/sudocmdgroup.py
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2014-06-04 17:39:10 +0200
committerMartin Kosek <mkosek@redhat.com>2014-06-24 13:53:41 +0200
commit52003a9ffb2e335f613b1392eb9b7bdc1a46792b (patch)
treeae64e4f63cdcd9591276d627fb274022cff8a769 /ipalib/plugins/sudocmdgroup.py
parent6b478628dc09f1138796deac5650d807bca02ee9 (diff)
downloadfreeipa-52003a9ffb2e335f613b1392eb9b7bdc1a46792b.tar.gz
freeipa-52003a9ffb2e335f613b1392eb9b7bdc1a46792b.tar.xz
freeipa-52003a9ffb2e335f613b1392eb9b7bdc1a46792b.zip
Convert Sudo Command Group default permissions to managed
Part of the work for: https://fedorahosted.org/freeipa/ticket/4346 Reviewed-By: Martin Kosek <mkosek@redhat.com>
Diffstat (limited to 'ipalib/plugins/sudocmdgroup.py')
-rw-r--r--ipalib/plugins/sudocmdgroup.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/ipalib/plugins/sudocmdgroup.py b/ipalib/plugins/sudocmdgroup.py
index adde3abdb..b443dd41b 100644
--- a/ipalib/plugins/sudocmdgroup.py
+++ b/ipalib/plugins/sudocmdgroup.py
@@ -78,6 +78,28 @@ class sudocmdgroup(LDAPObject):
'memberuser', 'memberhost',
},
},
+ 'System: Add Sudo Command Group': {
+ 'ipapermright': {'add'},
+ 'replaces': [
+ '(target = "ldap:///cn=*,cn=sudocmdgroups,cn=sudo,$SUFFIX")(version 3.0;acl "permission:Add Sudo command group";allow (add) groupdn = "ldap:///cn=Add Sudo command group,cn=permissions,cn=pbac,$SUFFIX";)',
+ ],
+ 'default_privileges': {'Sudo Administrator'},
+ },
+ 'System: Delete Sudo Command Group': {
+ 'ipapermright': {'delete'},
+ 'replaces': [
+ '(target = "ldap:///cn=*,cn=sudocmdgroups,cn=sudo,$SUFFIX")(version 3.0;acl "permission:Delete Sudo command group";allow (delete) groupdn = "ldap:///cn=Delete Sudo command group,cn=permissions,cn=pbac,$SUFFIX";)',
+ ],
+ 'default_privileges': {'Sudo Administrator'},
+ },
+ 'System: Manage Sudo Command Group Membership': {
+ 'ipapermright': {'write'},
+ 'ipapermdefaultattr': {'member'},
+ 'replaces': [
+ '(targetattr = "member")(target = "ldap:///cn=*,cn=sudocmdgroups,cn=sudo,$SUFFIX")(version 3.0;acl "permission:Manage Sudo command group membership";allow (write) groupdn = "ldap:///cn=Manage Sudo command group membership,cn=permissions,cn=pbac,$SUFFIX";)',
+ ],
+ 'default_privileges': {'Sudo Administrator'},
+ },
}
label = _('Sudo Command Groups')