mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
permission plugin: Sort rights when writing the ACI
This makes the ACI independent on set/dict iteration order. Reviewed-By: Martin Kosek <mkosek@redhat.com>
This commit is contained in:
@@ -550,7 +550,7 @@ class permission(baseldap.LDAPObject):
|
||||
raise ValueError(ipapermbindruletype)
|
||||
|
||||
aci_parts.append('(version 3.0;acl "permission:%s";allow (%s) %s;)' % (
|
||||
name, ','.join(entry['ipapermright']), bindrule))
|
||||
name, ','.join(sorted(entry['ipapermright'])), bindrule))
|
||||
|
||||
return ''.join(aci_parts)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user