summaryrefslogtreecommitdiffstats
path: root/ipaserver/plugins/ldap2.py
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2017-01-11 10:23:04 +0100
committerMartin Basti <mbasti@redhat.com>2017-01-24 13:25:47 +0100
commit0a1d7f2e01819ad6e4a19d0416b3a01883dea7d0 (patch)
tree03af4689d10591bf5ef9c7b55d4f04682cbfabdf /ipaserver/plugins/ldap2.py
parent51578882fc8456788d69a57de1a1d45ead58ba14 (diff)
downloadfreeipa-0a1d7f2e01819ad6e4a19d0416b3a01883dea7d0.tar.gz
freeipa-0a1d7f2e01819ad6e4a19d0416b3a01883dea7d0.tar.xz
freeipa-0a1d7f2e01819ad6e4a19d0416b3a01883dea7d0.zip
py3: add_entry_to_group: attribute name must be string not bytes
With bytes as attribute name pyldap raises type error https://fedorahosted.org/freeipa/ticket/4985 Reviewed-By: Christian Heimes <cheimes@redhat.com> Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipaserver/plugins/ldap2.py')
-rw-r--r--ipaserver/plugins/ldap2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipaserver/plugins/ldap2.py b/ipaserver/plugins/ldap2.py
index a04be38e3..25fbfb816 100644
--- a/ipaserver/plugins/ldap2.py
+++ b/ipaserver/plugins/ldap2.py
@@ -417,7 +417,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.DatabaseError: