diff options
author | Joas Schilling <coding@schilljs.com> | 2025-05-30 22:54:53 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2025-05-30 22:54:53 +0200 |
commit | 2c6547f3ef43f7b27d4431350e365db226f4610d (patch) | |
tree | 2e95c15dc0167add1edada36921a1aff90ebfe85 | |
parent | 35930a4331150d231be30fe05269ecfbd92d1f8d (diff) | |
download | nextcloud-server-bugfix/noid/user-ldap-cert-issue-8.3.21.tar.gz nextcloud-server-bugfix/noid/user-ldap-cert-issue-8.3.21.zip |
fix(user_ldap): Fix issue with START_TLS on PHP 8.3.21bugfix/noid/user-ldap-cert-issue-8.3.21
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | apps/user_ldap/lib/Connection.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/user_ldap/lib/Connection.php b/apps/user_ldap/lib/Connection.php index 78a5f93d29e..5121211c0e4 100644 --- a/apps/user_ldap/lib/Connection.php +++ b/apps/user_ldap/lib/Connection.php @@ -692,6 +692,8 @@ class Connection extends LDAPUtility { throw new ServerNotAvailableException('Connection failed'); } + $this->ldap->setOption($this->ldapConnectionRes, LDAP_OPT_X_TLS_CACERTFILE, '/etc/ssl/certs/ca-certificates.crt'); + if (!$this->ldap->setOption($this->ldapConnectionRes, LDAP_OPT_PROTOCOL_VERSION, 3)) { throw new ServerNotAvailableException('Could not set required LDAP Protocol version.'); } |