mirror of
https://github.com/moepman/bk-dss
synced 2024-12-22 06:54:26 +01:00
Add another missing encode()
This commit is contained in:
parent
251dc90ce8
commit
e4ed76957f
2
dss.py
2
dss.py
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user