1
0
mirror of https://github.com/moepman/bk-dss synced 2024-12-22 12:44:27 +01:00

Add another missing encode()

This commit is contained in:
Markus 2019-02-26 14:04:19 +01:00
parent 251dc90ce8
commit e4ed76957f

2
dss.py
View File

@ -117,7 +117,7 @@ def create():
# add user to group # add user to group
group_dn = app.config.get('GROUP_DN').format(**d) group_dn = app.config.get('GROUP_DN').format(**d)
l.modify_s(group_dn, [(ldap.MOD_ADD, 'memberUid', str(form.user.data))]) l.modify_s(group_dn, [(ldap.MOD_ADD, 'memberUid', str(form.user.data).encode())])
except ldap.LDAPError as e: except ldap.LDAPError as e:
l.unbind_s() l.unbind_s()