From 2656c4687b09f8eb2fe847e5e9901df1dbb3335e Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Fri, 11 Sep 2020 12:43:14 -0400 Subject: [PATCH] Use ACI class set_permissions() method to set permissions This will ensure uniqueuess and that the ACI has the right datatype without the caller worrying about it. https://pagure.io/freeipa/issue/8443 Signed-off-by: Rob Crittenden Reviewed-By: Alexander Bokovoy --- ipaserver/plugins/aci.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipaserver/plugins/aci.py b/ipaserver/plugins/aci.py index cb8707404..f15eea876 100644 --- a/ipaserver/plugins/aci.py +++ b/ipaserver/plugins/aci.py @@ -271,7 +271,7 @@ def _make_aci(ldap, current, aciname, kw): try: a = ACI(current) a.name = _make_aci_name(kw['aciprefix'], aciname) - a.permissions = kw['permissions'] + a.set_permissions(kw['permissions']) if 'selfaci' in kw and kw['selfaci']: a.set_bindrule('userdn = "ldap:///self"') else: