How to determine what version tls/ssl security protocol is connecting to LDAP (PHP)?

459 Views Asked by At

I am using the openLDAP library. How do I determine what security protocol type and version my server is using to connect to the AD server?

ldap_connect("ldaps://server:636");

I understand for websites, I can easily see the type and version by looking at the properties from the browsers..

1

There are 1 best solutions below

0
On

As suggested by another question, have a look at ldap_set_option which comes with a bunch of options, and can enable the debugging with

ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7);