[Solved] Working configuration for Auth via OpenLDAP?

My version of HedgeDoc is: 1.9.0

What I expected to happen: Authentication against OpenLAP

I have a working HedgeDoc setup based on Docker. Now I’d like to authenticate users only against our OpenLDAP DIT. But I do not find a working setting, so the authentication is not working. I also do not know how to debug the authentication process.

This is my current configuration:

- CMD_LDAP_URL=ldap://
- CMD_LDAP_BINDDN=cn=admin,dc=my-domain,dc=de
- CMD_LDAP_SEARCHBASE=ou=People,dc=my-domain,dc=de
# - CMD_LDAP_SEARCHFILTER=(&(objectClass=inetOrgPerson)(|(uid={{username}})(mail={{username}})))
- CMD_LDAP_SEARCHFILTER=(uid={{username}})
- DEBUG=true

Does anyone have a working configuration for authentication against an OpenLDAP-DIT?


Works for me

With your answer @mrdrogdrog I had the hint to what was wrong in my configuration. I had double-quoted the password behind CMD_LDAP_BINDCREDENTIALS. After I removed them, just the password without quotes after the =, also my configuration worked.

Thank you!