Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
CE-22.5
-
None
-
##### Software versions #####
o OS Linux 5.15.0-40-generic [amd64] (Ubuntu 22.04)
o Apache 2.4.52
o PHP 8.1.2-1ubuntu2.9 (OPcache: DISABLED)
o Python 3.10.6 (python3 not used as default python)
o MySQL 8.0.30-22 (extension: mysqli 8.1.2-1ubuntu2.9)
o SNMP NET-SNMP 5.9.1
o RRDtool 1.7.2
o Fping 5.1 (IPv4 and IPv6)
##### Memory Limit #####
o PHP 128MB
##### MySQL mode #####
o MySQL NO_ENGINE_SUBSTITUTION
##### Charset info #####
o PHP UTF-8
o MySQL utf8mb3
##### Timezones info #####
o Date Thursday, 22-Dec-22 16:38:22 CST
o PHP -06:00
o MySQL -06:00##### Software versions ##### o OS Linux 5.15.0-40-generic [amd64] (Ubuntu 22.04) o Apache 2.4.52 o PHP 8.1.2-1ubuntu2.9 (OPcache: DISABLED) o Python 3.10.6 (python3 not used as default python) o MySQL 8.0.30-22 (extension: mysqli 8.1.2-1ubuntu2.9) o SNMP NET-SNMP 5.9.1 o RRDtool 1.7.2 o Fping 5.1 (IPv4 and IPv6) ##### Memory Limit ##### o PHP 128MB ##### MySQL mode ##### o MySQL NO_ENGINE_SUBSTITUTION ##### Charset info ##### o PHP UTF-8 o MySQL utf8mb3 ##### Timezones info ##### o Date Thursday, 22-Dec-22 16:38:22 CST o PHP -06:00 o MySQL -06:00
Description
In php 8.1 the ldap resources were migrated to LDAP\Connection, LDAP\Result, and LDAP\ResultEntry objects.
This change breaks authentication due to checks using the is_resource() check on search results. Resolving this should only require replacing usage of is_resource() with instanceof and the new objects.