py3: remove_entry_from_group: attribute name must be string

Do not encode attribute names

https://fedorahosted.org/freeipa/ticket/4985

Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
Martin Basti 2017-01-25 14:56:07 +01:00 committed by Jan Cholasta
parent caa560ca79
commit a93b2bea5c

View File

@ -442,7 +442,7 @@ class ldap2(CrudBackend, LDAPClient):
# update group entry
try:
with self.error_handler():
modlist = [(a, self.encode(b), self.encode(c))
modlist = [(a, b, self.encode(c))
for a, b, c in modlist]
self.conn.modify_s(str(group_dn), modlist)
except errors.MidairCollision: