mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Re-implement access control using an updated model.
The new model is based on permssions, privileges and roles. Most importantly it corrects the reverse membership that caused problems in the previous implementation. You add permission to privileges and privileges to roles, not the other way around (even though it works that way behind the scenes). A permission object is a combination of a simple group and an aci. The linkage between the aci and the permission is the description of the permission. This shows as the name/description of the aci. ldap:///self and groups granting groups (v1-style) are not supported by this model (it will be provided separately). This makes the aci plugin internal only. ticket 445
This commit is contained in:
committed by
Simo Sorce
parent
85d5bfd1b1
commit
4ad8055341
@@ -357,7 +357,7 @@ class BindInstance(service.Service):
|
||||
logging.critical("Could not connect to the Directory Server on %s" % self.fqdn)
|
||||
raise e
|
||||
|
||||
dns_group = "cn=dnsserver,cn=rolegroups,cn=accounts,%s" % self.suffix
|
||||
dns_group = "cn=dnsserver,cn=privileges,cn=accounts,%s" % self.suffix
|
||||
if isinstance(dns_principal, unicode):
|
||||
dns_principal = dns_principal.encode('utf-8')
|
||||
mod = [(ldap.MOD_ADD, 'member', dns_principal)]
|
||||
|
Reference in New Issue
Block a user