From 88b192a37ead1538e6d840c2f686f8d21a948542 Mon Sep 17 00:00:00 2001 From: Martin Basti Date: Fri, 27 Jan 2017 17:00:42 +0100 Subject: [PATCH] py3: modify_s: attribute name must be str not bytes https://fedorahosted.org/freeipa/ticket/4985 Reviewed-By: Jan Cholasta --- ipapython/ipaldap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipapython/ipaldap.py b/ipapython/ipaldap.py index 6a4674405..82d45b9a7 100644 --- a/ipapython/ipaldap.py +++ b/ipapython/ipaldap.py @@ -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