diff options
author | Jan Cholasta <jcholast@redhat.com> | 2013-02-04 09:47:00 +0100 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2013-03-01 16:59:47 +0100 |
commit | a09c50671ecc53af63765afca13edd27ee598081 (patch) | |
tree | 07f8c21e0be27b92dfe73ab505ea5bae63fd39cc /ipalib/plugins/aci.py | |
parent | 3aa39547df18bc77ba49720f8a3a1a0052907859 (diff) | |
download | freeipa.git-a09c50671ecc53af63765afca13edd27ee598081.tar.gz freeipa.git-a09c50671ecc53af63765afca13edd27ee598081.tar.xz freeipa.git-a09c50671ecc53af63765afca13edd27ee598081.zip |
Use full DNs in plugin code.
Diffstat (limited to 'ipalib/plugins/aci.py')
-rw-r--r-- | ipalib/plugins/aci.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ipalib/plugins/aci.py b/ipalib/plugins/aci.py index eddb26a4..dab209e6 100644 --- a/ipalib/plugins/aci.py +++ b/ipalib/plugins/aci.py @@ -245,7 +245,10 @@ def _make_aci(ldap, current, aciname, kw): if 'test' in kw and not kw.get('test'): raise e else: - entry_attrs = {'dn': DN(('cn', kw['permission']), api.env.container_permission)} + entry_attrs = { + 'dn': DN(('cn', kw['permission']), + api.env.container_permission, api.env.basedn), + } elif group: # Not so friendly with groups. This will raise try: @@ -366,7 +369,8 @@ def _aci_to_kw(ldap, a, test=False, pkey_only=False): except errors.NotFound, e: # FIXME, use real name here if test: - dn = DN(('cn', 'test'), api.env.container_permission) + dn = DN(('cn', 'test'), api.env.container_permission, + api.env.basedn) entry_attrs = {'cn': [u'test']} if api.env.container_permission in dn: kw['permission'] = entry_attrs['cn'][0] |