-
-
Notifications
You must be signed in to change notification settings - Fork 44
Description
Environment:
- LDAP Server Type: ActiveDirectory
- PHP Version: 8.3
Hello, we are looking for guidance.
We are deploying a Web App as a container in Azure and we will be using the customer's LDAP (LDAPS, port 636) to authenticate the users.
Customer has provided us with 2 PEM CA Certificates (chain certificates they call them).
According to PHP https://www.php.net/manual/en/function.ldap-set-option.php
You can use LDAP_OPT_X_TLS_CACERTFILE for a single certificate or LDAP_OPT_X_TLS_CACERTDIR to load multiple certificates.
Have anyone ever tried LDAP_OPT_X_TLS_CACERTDIR and worked with more than one certificate?
Unecrypted LDAP works fine but LDAPS with the provided certificates from the customer all we get is "Cannot contact LDAP server".
We suspect there is an issue with the provided certificates but how can we debug this to identify that the issue is indeed with the provided certificates?
In-house LDAPS with one certificate and LDAP_OPT_X_TLS_CACERTFILE success and we had another customer that provided only one certificate and we did not have an issue...