For me, the following worked:
Changes in users_ldap.py:
conn = self.connect(conf) conn.simple_bind_s(dn, password.encode("utf-8")) conn.unbind()
and:
conn.simple_bind_s(conf['ldap_binddn'] or '', conf['ldap_password'].encode('utf-8') or '') results = conn.search_st(conf['ldap_base'].encode('utf-8'), ldap.SCOPE_SUBTREE, filter, retrieve_attributes, timeout=60)
For me, the following worked:
Changes in users_ldap.py:
and:
results = conn.search_