Closed StasTODD closed 5 years ago
ERROR: flask_ldap3_login: invalid class in objectClass attribute: group
I just did a quick search, this looks like an issue being thrown from the underlying ldap3
library that is used under the hood. Looks like it is coming from here:
Is that because 'group' is not a valid objectclass in LDAP. Try checking objectclass attributes in your group ou (could be one of groupOfNames, groupOfUniqueNames, nisNetGroup, posixGroup
) and set that to config LDAP_GROUP_OBJECT_FILTER
.
example - LDAP_GROUP_OBJECT_FILTER="(objectclass=groupOfNames)"
Yeah, it work! I fix it: app.config['LDAP_GROUP_OBJECT_FILTER'] = '(objectclass=posixGroup)'
Hello! I set up a simple project with authorization on flask. First of all, to test connectivity with LDAP, I try the Basic Application from a resource: https://flask-ldap3-login.readthedocs.io/en/latest/quick_start.html My LDAP is 100% working. After requesting the Basic Application to the LDAP server, I see that the LDAP server returns "success", but flask gives the error.
Please help me where and how to see what LDAP returns to me and how to solve the problem?
Error: