Comment 4 for bug 1079476

Revision history for this message
martin (riess82) wrote :

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)