From b9f69d4f0b310ed000fc7bde522f3657c032020b Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Wed, 26 Mar 2014 17:11:23 +0100 Subject: [PATCH] Add managed read permission to service Part of the work for: https://fedorahosted.org/freeipa/ticket/3566 Reviewed-By: Martin Kosek --- ipalib/plugins/service.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ipalib/plugins/service.py b/ipalib/plugins/service.py index f590b666a..592c4cfd0 100644 --- a/ipalib/plugins/service.py +++ b/ipalib/plugins/service.py @@ -312,6 +312,21 @@ class service(LDAPObject): 'managedby': ('Managed by', 'man_by_', 'not_man_by_'), } password_attributes = [('krbprincipalkey', 'has_keytab')] + managed_permissions = { + 'System: Read Services': { + 'replaces_global_anonymous_aci': True, + 'ipapermbindruletype': 'all', + 'ipapermright': {'read', 'search', 'compare'}, + 'ipapermdefaultattr': { + 'objectclass', + 'ipauniqueid', 'managedby', 'memberof', 'usercertificate', + 'krbprincipalname', 'krbcanonicalname', 'krbprincipalaliases', + 'krbprincipalexpiration', 'krbpasswordexpiration', + 'krblastpwdchange', 'ipakrbauthzdata', 'ipakrbprincipalalias', + 'krbobjectreferences', + }, + }, + } label = _('Services') label_singular = _('Service')