summaryrefslogtreecommitdiffstats
path: root/ipaserver
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2017-01-25 14:56:07 +0100
committerJan Cholasta <jcholast@redhat.com>2017-02-08 08:32:44 +0100
commita93b2bea5ce88a934ba2ab39bdaa518fb55064c4 (patch)
tree026cd807917129650595ba2edcb434b3aecf0d46 /ipaserver
parentcaa560ca79e4038b161b27d11e3f144606dbbcdb (diff)
downloadfreeipa-a93b2bea5ce88a934ba2ab39bdaa518fb55064c4.tar.gz
freeipa-a93b2bea5ce88a934ba2ab39bdaa518fb55064c4.tar.xz
freeipa-a93b2bea5ce88a934ba2ab39bdaa518fb55064c4.zip
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>
Diffstat (limited to 'ipaserver')
-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 71c095d05..e671ecba7 100644
--- a/ipaserver/plugins/ldap2.py
+++ b/ipaserver/plugins/ldap2.py
@@ -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: