martialblog / docker-limesurvey

A Docker Image for LimeSurvey
https://hub.docker.com/r/martialblog/limesurvey/
MIT License
154 stars 69 forks source link

Install and configure LDAP dependencies #157

Closed SoerenBusse closed 1 year ago

SoerenBusse commented 1 year ago

Description:

The connection to an LDAP server with a valid certificate (StartTLS + LDAPS) fails with the message, that it cannot connect to the server. The same issue can be reproduced using the ldapsearch CLI command:

TLS: peer cert untrusted or revoked (0x42)
TLS: can't connect: (unknown error code).

To fix this, the following packages must be installed in the docker-container:

libldap-common libsasl2-modules

Additionally, it would be helpful to have an environment variable to optionally disable TLS certificate validation completely by writing the following to /etc/ldap/ldap.conf

TLS_REQCERT never

Environment: Image: docker.io/martialblog/limesurvey:6.1.5-230626-apache

martialblog commented 1 year ago

Hey, thanks for the hint. Do you want to open a Pull Request for the packages?

Regarding the /etc/ldap/ldap.conf you could simply mount a file with the configuration into the container. I think that's the most flexible option.

martialblog commented 1 year ago

Hi, the packages are in the latest Images.