ldaps connection failed since #20014
Closed this issue · 4 comments
Code of Conduct
- I agree to follow this project's Code of Conduct
Is there an existing issue for this?
- I have searched the existing issues
Version
10.0.20
Bug description
Hi,
I tested upgrade from glpi 10.0.18 to 10.0.19 : no problem in upgrade process, but we have a ldaps server and since this upgrade connection not working anymore.
If I set connection back to ldap it's working but not with ldaps
if I go back over the changes introduced by #20014, then ldaps worked as before
I don't understand
Thx
Relevant log output
[2025-09-17 15:07:34] glpiphplog.WARNING: *** PHP User Warning (512): Unable to connect to LDAP server LDAPS://ldap.mycompany.com:636 in /var/www/html/glpi/src/AuthLDAP.php at line 3102
Backtrace :
src/AuthLDAP.php:3102 trigger_error()
src/AuthLDAP.php:1656 AuthLDAP::connectToServer()
front/authldap.form.php:84 AuthLDAP::testLDAPConnection()
public/index.php:82 require()Page URL
No response
Steps To reproduce
upgrade glpi from 10.0.18 to 10.019
user connection failed
connect with internal user
go to setup>authentication>ldap directory
setup et test ldap server
Your GLPI setup information
GLPI 10.0.20 ( => /var/www/html/glpi)
Installation mode: TARBALL
Current language:en_GB
Operating system: Linux s039 4.18.0-553.72.1.el8_10.x86_64 #1 SMP Sat Sep 6 19:16:09 UTC 2025 x86_64
PHP 8.3.25 fpm-fcgi (Core, PDO, PDO_ODBC, Phar, Reflection, SPL, SimpleXML, Zend OPcache, bz2, calendar, cgi-fcgi, ctype, curl,
date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, intl, json, ldap, libxml, mbstring, mysqli, mysqlnd,
odbc, openssl, pcre, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, random, session, sockets, sodium, sqlite3, standard, tokenizer,
xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib)
Setup: max_execution_time="30" memory_limit="128M" post_max_size="8M" safe_mode="" session.save_handler="files"
upload_max_filesize="2M" disable_functions=""
Software: Apache/2.4.37 (Rocky Linux) OpenSSL/1.1.1k ()
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101 Firefox/140.0
Server Software: MariaDB Server
Server Version: 10.11.14-MariaDB
Server SQL Mode: STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
Parameters: glpi@localhost/glpi
Host info: Localhost via UNIX socket
Anything else?
No response
I guess this is because your schema is uppercase: LDAPS://ldap.mycompany.com:636. Please try all lowercase.
Yes, in lowercase, it works.
OK, thank you for the feedback; I'll propose a fix.
ok, thank !