Hello,
I'm trying to configure LUALDAP to use LDAPS instead of LDAP.
However, the error message "Can't contact LDAP server" is returned.
If I use LDAP, LUALDAP works as expected.
I have configured the lua-ldap-ca-cert-label entry and I'm basically following the steps described here for this configuration.
The key difference is that I'm using an external LDAP (ISVD) with TLS 1.3 enabled, instead of the internal LDAP.
I also tried using the lualdap.open function instead of initialize.
Using Packet Tracing I could identify that the problem may be related to the CA, as the during the handshake, RP sends a TCP response Alert with the message "Unknown CA".
The ISVD certificate is self signed and the certificate is stored in the RP keystore.
As the all TCP payload are encrypted, it's not possible to identify the certificate sent by ISVD.
The certificate is the same used by RP to authenticate the users when using username/password.
By the way, if I use this entry LDAPTLS_REQCERT = never, the LUA script can connect to LDAP server.
Any suggestion?
------------------------------
Rudy Santos
------------------------------