moodlehq / moodle-php-apache

PHP + Apache docker images for Moodle development
60 stars 68 forks source link

LDAP and Debian Bullseye #147

Open scara opened 2 years ago

scara commented 2 years ago

Hello Everyone, I didn't test it by myself, just sharing something that could affect the LDAP tests here when using the Bullseye option and running MOODLE_DOCKER_PHPUNIT_EXTRAS=true:

Oh, in buster the curl package depends on libcurl4 which depends on libldap-2.4-2 which depends on libldap-common. While in bullseye, the libldap-2.4-2 package only recommends libldap-common.

It looks like we should add libldap-common to PACKAGES_LDAP or wait for https://github.com/docker-library/php/issues/1228.

HTH, Matteo

stronk7 commented 2 years ago

Uhm...

we already have switched to bullseye as default images for PHP 7.4 and 8.0 @ ci.moodle.org and, apparently, tests involving ldap (auth_ldap, enrol_ldap) are passing without any problem. Plus ldap logs also look ok (quick inspection).

And, yes, we are using libldap-2.4-2 there (and libldap2-dev).

Will keep an eye on that issue, but right now all I can say is that it seems to be working ok here.

scara commented 2 years ago

TNX @stronk7!

I think it could be related to secure LDAP connections only. Apologies for the noise.

HTH, Matteo

stronk7 commented 2 years ago

TNX @scara , no worries!

thinkl33t commented 2 years ago

I think it could be related to secure LDAP connections only. Apologies for the noise.

This is the failure mode i've observed in other software, AFAICT the lack of an ldap.conf prevents php-ldap from finding the system CA database, so it can't connect to anything using LDAPS.

stronk7 commented 1 year ago

Should we still do anything here?