PHP8: LDAP SSL failed

Upgrading my container image from PHP7 to PHP8.2.4 , all the ext library seems the same, but when my ldap_bind function failed on php8 .
Warning: ldap_bind(): Unable to bind to server: Can't contact LDAP server in

This is the fix

RUN apt-get update && apt-get install -y libldap-common

Leave a Reply

Your email address will not be published. Required fields are marked *