py3: modify_s: attribute name must be str not bytes

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

Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
Martin Basti 2017-01-27 17:00:42 +01:00 committed by Jan Cholasta
parent 2f4442fff5
commit 88b192a37e

View File

@ -729,7 +729,7 @@ class LDAPClient(object):
# FIXME: for backwards compatibility only
assert isinstance(dn, DN)
dn = str(dn)
modlist = [(a, self.encode(b), self.encode(c)) for a, b, c in modlist]
modlist = [(a, b, self.encode(c)) for a, b, c in modlist]
return self.conn.modify_s(dn, modlist)
@property