6.0.0-alpha10
5/14/25

[#15156] LDAP Authentication failure
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

History
01/15/2024 11:51:58 PM nels (at) maei (dot) ca Comment #3
New Attachment: Entry.php.patch Download
Reply to this comment
Replacing the is_resource() calls with is_object() calls in 
vendor/horde/ldap/lib/Horde/Ldap/Entry.php gets LDAP authentication 
working under PHP 8.2 for me.
01/15/2024 11:25:13 PM nels (at) maei (dot) ca Comment #2 Reply to this comment
After doing some searching on the exact error message, I found a forum 
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.
01/12/2024 11:02:18 PM nels (at) maei (dot) ca Comment #1
State ⇒ Unconfirmed
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ LDAP Authentication failure
Queue ⇒ Horde Base
Milestone ⇒
Patch ⇒ No
Reply to this comment
After configuring LDAP authentication and attempting to log in, the 
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.

Saved Queries