1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-03-11 00:58:39 +03:00

Small comment for GNUTLS or OpenSSL libldap use

This commit is contained in:
Adolfo Gómez García 2023-07-22 02:22:32 +02:00
parent 9738f793e6
commit a5b5899c93
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23

View File

@ -144,6 +144,8 @@ def connection(
# * PFS
# * SECURE256
#
# Note: Your distro could have compiled libldap with OpenSSL, so this will not work
# You can simply use OpenSSL cipher suites, but you will need to test them
try:
l.set_option(ldap.OPT_X_TLS_CIPHER_SUITE, cipher_suite) # type: ignore
l.set_option(ldap.OPT_X_TLS_NEWCTX, 0) # type: ignore