Hi everyone,
I am trying to setup LDAP in our local discourse to use the LDAP server of our university. I got a working configuration of another app from a colleague and tried to adapt it to use it with the discourse LDAP plugin (GitHub - jonmbake/discourse-ldap-auth: Discourse plugin to enable LDAP/Active Directory authentication.) but I cannot get it right. Presumably I got the syntax or attribute names wrong. Unfortunately I have no experience using LDAP.
The connection to the server seems to work but I always get “(ldap) Authentication failure! invalid_credentials encountered.”
Below you find the current discourse LDAP configuration as well as the working configuration of the other app.
Many thanks for your help in advance!
Best,
Marco
Reference:
LDAP_HOST="ldaps://ldap.uni-freiburg.de"
LDAP_PORT=636
LDAP_USE_SSL=True
LDAP_BASE_DN="dc=uni-freiburg,dc=de"
LDAP_USER_DN="ou=people"
LDAP_USER_RDN_ATTR="cn"
LDAP_USER_LOGIN_ATTR="uid"
LDAP_USER_OBJECT_FILTER="(objectclass=*)"
LDAP_SEARCH_FOR_GROUPS=False
LDAP_USER_SEARCH_SCOPE="SUBTREE"