From 5130a86854b563f61bff30d6ce6a864fbbfc40e5 Mon Sep 17 00:00:00 2001 From: Brady Wetherington Date: Mon, 23 May 2022 20:31:43 -0700 Subject: [PATCH] Google client-side TLS auth works better with null as context(?) --- app/Models/Ldap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Ldap.php b/app/Models/Ldap.php index 025e759798..3ff82744c0 100644 --- a/app/Models/Ldap.php +++ b/app/Models/Ldap.php @@ -64,8 +64,8 @@ class Ldap extends Model ldap_set_option($connection, LDAP_OPT_NETWORK_TIMEOUT, 20); if (Setting::getSettings()->ldap_client_tls_cert && Setting::getSettings()->ldap_client_tls_key) { - ldap_set_option($connection, LDAP_OPT_X_TLS_CERTFILE, Setting::get_client_side_cert_path()); - ldap_set_option($connection, LDAP_OPT_X_TLS_KEYFILE, Setting::get_client_side_key_path()); + ldap_set_option(null, LDAP_OPT_X_TLS_CERTFILE, Setting::get_client_side_cert_path()); + ldap_set_option(null, LDAP_OPT_X_TLS_KEYFILE, Setting::get_client_side_key_path()); } if ($ldap_use_tls=='1') {