moodle-php-apache icon indicating copy to clipboard operation
moodle-php-apache copied to clipboard

LDAP and Debian Bullseye

Open scara opened this issue 3 years ago • 5 comments
trafficstars

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

scara avatar Nov 29 '21 15:11 scara

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.

stronk7 avatar Nov 30 '21 10:11 stronk7

TNX @stronk7!

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

HTH, Matteo

scara avatar Nov 30 '21 15:11 scara

TNX @scara , no worries!

stronk7 avatar Nov 30 '21 17:11 stronk7

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.

thinkl33t avatar Dec 03 '21 10:12 thinkl33t

Should we still do anything here?

stronk7 avatar Mar 18 '23 18:03 stronk7