Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

243
Vistas
LDAP Bind failed on docker image php:7.4-apache / bullseye

I have an application that I wrote in PHP using the docker container php:7.4-apache, however recently the php docker containers have been updated to use Debian Bullseye as the base image.

Ever since this update, I am no longer able to perform LDAP Binds. No matter what I try it fails and gives me the following error when turning on ldap debugging:

ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7);

TLS: can't connect: (unknown error code).
ldap_err2string

There is an issue on Github on the php docker image however it was closed and we were suggested to use the php:7.4-apache-buster image directly. This does work however it would be nice to figure out what is going on so we can upgrade to the future Bullseye release.

https://github.com/docker-library/php/issues/1194

However, just as I was writing this I turned off TLS for ldap and went to the unencrypted 389 port of my LDAP server and it works, so something is wrong with the TLS connection for sure.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

I figured it out. On Debian Bullseye the libldap-common package is not installed when installing libldap2-dev as a dependency. Adding libldap-common as a package to install during the build process fixed the issue.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda