Summary | LDAP Authentication failure |
Queue | Horde Base |
Queue Version | FRAMEWORK_6_0 |
Type | Bug |
State | Unconfirmed |
Priority | 3. High |
Owners | |
Requester | nels (at) maei (dot) ca |
Created | 01/12/2024 (488 days ago) |
Due | |
Updated | 01/15/2024 (485 days ago) |
Assigned | |
Resolved | |
Milestone | |
Patch | No |
New Attachment: Entry.php.patch
vendor/horde/ldap/lib/Horde/Ldap/Entry.php gets LDAP authentication
working under PHP 8.2 for me.
thread for a different application where this error message started
showing up after upgrading from PHP 8.0 to a higher version.
For testing purposes, I installed the required PHP 8.0.30 packages
from the Remi-Safe repository and reconfigured the Apache virtualhost
to use PHP 8.0 rather than PHP 8.2. LDAP logins immediately started
working.
This appears to be a PHP 8.1+ issue; from the PHP documentation at
https://www.php.net/manual/en/migration81.incompatible.php:
* The LDAP functions now accept and return LDAP\Connection objects
instead of ldap link resources.
* The LDAP functions now accept and return LDAP\Result objects
instead of ldap result resources.
* The LDAP functions now accept and return LDAP\ResultEntry objects
instead of ldap result entry resources.
State ⇒ Unconfirmed
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ LDAP Authentication failure
Queue ⇒ Horde Base
Milestone ⇒
Patch ⇒ No
following error message is produced (browser and syslog):
HORDE[1570]:[horde] Unable to create connected entry: Parameter $entry
needs to be a ldap entry resource! [pid 1570 on line 186
of"/var/www/html/horde6/vendor/horde/ldap/lib/Horde/Ldap/Entry.php"]
PHP version is 8.2.12.