From e4ed76957f89c48a3d3ca69b6f2e4575872c8322 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Tue, 26 Feb 2019 14:04:19 +0100 Subject: [PATCH] Add another missing encode() --- dss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dss.py b/dss.py index a58f4e1..968a182 100755 --- a/dss.py +++ b/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()