Add another missing encode()

This commit is contained in:
Markus 2019-02-26 14:04:19 +01:00
parent 251dc90ce8
commit e4ed76957f
1 changed files with 1 additions and 1 deletions

2
dss.py
View File

@ -117,7 +117,7 @@ def create():
# add user to group
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:
l.unbind_s()