diff options
author | Petr Viktorin <pviktori@redhat.com> | 2014-06-04 17:39:10 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2014-06-24 13:53:41 +0200 |
commit | 52003a9ffb2e335f613b1392eb9b7bdc1a46792b (patch) | |
tree | ae64e4f63cdcd9591276d627fb274022cff8a769 /ipalib/plugins/sudocmdgroup.py | |
parent | 6b478628dc09f1138796deac5650d807bca02ee9 (diff) | |
download | freeipa-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.py | 22 |
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') |