permission-mod: Do not copy member attributes to new entry

Fixes: https://fedorahosted.org/freeipa/ticket/4178
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
Petr Viktorin 2014-02-19 14:18:58 +01:00
parent 340cbd4a7d
commit 0824d12c95

View File

@ -883,7 +883,9 @@ class permission_mod(baseldap.LDAPUpdate):
# it cannot be used directly to generate an ACI.
# First we need to copy the original data into it.
for key, value in old_entry.iteritems():
if key not in options and key != 'cn':
if (key not in options and
key != 'cn' and
key not in self.obj.attribute_members):
entry.setdefault(key, value)
if not entry.get('ipapermlocation'):