diff options
author | Petr Viktorin <pviktori@redhat.com> | 2014-06-23 13:23:49 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2014-06-24 13:53:41 +0200 |
commit | 175b19bbf85d0aff91c0dec278cb66fce98b469c (patch) | |
tree | de320f8c42860b3dd225932e343d3ca837e0136b /ipalib/plugins/automount.py | |
parent | 52003a9ffb2e335f613b1392eb9b7bdc1a46792b (diff) | |
download | freeipa-175b19bbf85d0aff91c0dec278cb66fce98b469c.tar.gz freeipa-175b19bbf85d0aff91c0dec278cb66fce98b469c.tar.xz freeipa-175b19bbf85d0aff91c0dec278cb66fce98b469c.zip |
Add several CRUD default permissions
Add missing Add, Modify, Removedefault permissions to:
- automountlocation (Add/Remove only; locations have
no data to modify)
- privilege
- sudocmdgroup (Modify only; the others were present)
Related to: https://fedorahosted.org/freeipa/ticket/4346
Reviewed-By: Martin Kosek <mkosek@redhat.com>
Diffstat (limited to 'ipalib/plugins/automount.py')
-rw-r--r-- | ipalib/plugins/automount.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ipalib/plugins/automount.py b/ipalib/plugins/automount.py index 02f0a3f60..0a5c121ca 100644 --- a/ipalib/plugins/automount.py +++ b/ipalib/plugins/automount.py @@ -212,6 +212,7 @@ class automountlocation(LDAPObject): default_attributes = ['cn'] label = _('Automount Locations') label_singular = _('Automount Location') + permission_filter_objectclasses = ['nscontainer'] managed_permissions = { 'System: Read Automount Configuration': { # Single permission for all automount-related entries @@ -226,6 +227,14 @@ class automountlocation(LDAPObject): 'automountmapname', 'description', }, }, + 'System: Add Automount Locations': { + 'ipapermright': {'add'}, + 'default_privileges': {'Automount Administrators'}, + }, + 'System: Remove Automount Locations': { + 'ipapermright': {'delete'}, + 'default_privileges': {'Automount Administrators'}, + }, } takes_params = ( |