mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Add managed read permission to automount
A single permission is added to cover automountlocation, automountmap, and automountkey. Part of the work for: https://fedorahosted.org/freeipa/ticket/3566 Reviewed-By: Martin Kosek <mkosek@redhat.com>
This commit is contained in:
committed by
Martin Kosek
parent
bb4e47d9ea
commit
adde918f38
@@ -208,6 +208,21 @@ class automountlocation(LDAPObject):
|
|||||||
default_attributes = ['cn']
|
default_attributes = ['cn']
|
||||||
label = _('Automount Locations')
|
label = _('Automount Locations')
|
||||||
label_singular = _('Automount Location')
|
label_singular = _('Automount Location')
|
||||||
|
managed_permissions = {
|
||||||
|
'System: Read Automount Configuration': {
|
||||||
|
# Single permission for all automount-related entries
|
||||||
|
'non_object': True,
|
||||||
|
'ipapermlocation': DN(container_dn, api.env.basedn),
|
||||||
|
'replaces_global_anonymous_aci': True,
|
||||||
|
'ipapermbindruletype': 'anonymous',
|
||||||
|
'ipapermright': {'read', 'search', 'compare'},
|
||||||
|
'ipapermdefaultattr': {
|
||||||
|
'cn', 'objectclass',
|
||||||
|
'automountinformation', 'automountkey', 'description',
|
||||||
|
'automountmapname', 'description',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
takes_params = (
|
takes_params = (
|
||||||
Str('cn',
|
Str('cn',
|
||||||
|
|||||||
Reference in New Issue
Block a user