Add support for TLS and connectionless LDAP connections on Linux (#52904)
* Set LDAP version with pointers on Linux
* Replace deprecated OpenLDAP methods
In OpenLDAP, ldap_simple_bind_s is deprecated in favor of
ldap_sasl_bind_s with the LDAP_SASL_SIMPLE auth method[1][].
Similarly, ldap_init is deprecated in favor of ldap_initialize[2][].
The newer APIs also allows us to specify a URI to use TLS with OpenLDAP.
[1]: https://git.openldap.org/openldap/openldap/-/blob/OPENLDAP_REL_ENG_2_4_58/include/ldap.h#L1278
[2]: https://git.openldap.org/openldap/openldap//blob/OPENLDAP_REL_ENG_2_4_58/include/ldap.h#L1513
* Add TLS and connectionless LDAP support to Linux
This commit manually specifies the LDAP URI option during connect
(but before binding). This is necessary because in order to know the
correct scheme, we need access to SessionOptions, which is not available
until after initialization.
Finally, it removes the PlatformUnsupportedException from the
SessionOptions.SecureSocketLayer property.
This makes it possible to use LDAP over TLS and connectionless (UDP)
LDAP.
* Add test configuration for LDAP TLS server