Fix for Flask-SimpleLDAP 2.0.0

This commit is contained in:
Ozzie Isaacs
2024-05-10 20:23:41 +02:00
parent c8c3b3cba3
commit 5c49c8cdd7
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -1631,7 +1631,10 @@ def import_ldap_users():
imported = 0
for username in new_users:
user = username.decode('utf-8')
if isinstance(username, bytes):
user = username.decode('utf-8')
else:
user = username
if '=' in user:
# if member object field is empty take user object as filter
if config.config_ldap_member_user_object: