-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning: ldap_bind(): Unable to bind to server: Can't contact LDAP server #1194
Comments
I'm having a similar issue with using php:7.4-apache. I'm trying to downgrade to php7.4-21-apache now to see if it'll fix it. Edit: Tried the downgrade and it didn't fix it :( |
It's likely related to the upgrade to Debian Bullseye (#1190); if you pin to the Debian Buster variants instead, it will probably work again (although you should really spend some time digging in to figure out what broke, since you'll need to cross that bridge eventually). |
I turned on some debugging using the bullseye image and I'm getting this error when trying to bind. So either something is broken in the ldap package or maybe another package is required...
|
So is there an issue in how we build the module or is it something like an older certificate or TLS protocol that Debian Bullseye openssl refuses to verify/use by default? |
I just tried to disable TLS and it seems to work now... So yes, maybe something with the protocol. I'll have to dig a bit deeper. My ldap server does support TLS 1, 1.1 and 1.2 so not sure that is the issue, but maybe it could be the root CA causing the issue too? For our cert we are using:
|
Interesting.. in the new bullseye version there is no /etc/ldap/ldap.conf however there is on the older buster version. Comparing packages, on bullseye the libldap-common package is missing. |
That fixed it.. adding libldap-common as part of my Dockerfile was it. I guess on buster this package was automatically installed but no longer on bullseye
|
Oh, in |
I see.. btw this is what I was installing before it broke:
|
As @yosifkit wrote, not all dependencies for LDAP are installed. We saw this error Just in case it helps someone else, we added in both cases the following to our Dockerfile (which builds from the PHP image) and LDAP works again.
|
This solution solved the problem for me too. It has to be done that way (building the image with the extra |
Adding libldap-common fixed the issue for our projects too. Thank you for finding this. |
I was pulling the latest image with tag php:8.0-apache which installs php 8.0.9
Could no longer connect to the domain LDAP server. Downgraded to php:8.0.7-apache, and it works again.
The text was updated successfully, but these errors were encountered: