| Summary | LDAP Authentication failure |
| Queue | Horde Base |
| Queue Version | FRAMEWORK_6_0 |
| Type | Bug |
| State | Resolved |
| Priority | 3. High |
| Owners | |
| Requester | nels (at) maei (dot) ca |
| Created | 01/12/2024 (706 days ago) |
| Due | |
| Updated | 05/29/2025 (203 days ago) |
| Assigned | |
| Resolved | 05/29/2025 (203 days ago) |
| Github Issue Link | |
| Github Pull Request | |
| Milestone | |
| Patch | No |
State ⇒ Resolved
#15178in the LDAP queue.Please upgrade to https://packagist.org/packages/horde/ldap#v3.0.0alpha8
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.
Priority ⇒ 3. High
Patch ⇒ No
Milestone ⇒
Queue ⇒ Horde Base
Summary ⇒ LDAP Authentication failure
Type ⇒ Bug
State ⇒ Unconfirmed
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.