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:
Petr Viktorin
2014-06-09 19:29:55 +02:00
parent 36c5ba9d27
commit 52a4b54635

View File

@@ -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)