Hi! I’m having issues with ActiveDirectory authentication when pulling Docker image 22.7.0. Everything is fine with image 22.6.0, so could be a bug related to PHP 8.0
After a login attempt, an error screen appeared which points to librenms.log and found this:
production.ERROR: ldap_get_entries(): Argument #2 ($result) must be of type resource, bool given {“exception”:"[object] (TypeError(code: 0): ldap_get_entries(): Argument #2 ($result) must be of type resource, bool given at /opt/librenms/LibreNMS/Authentication/ActiveDirectoryAuthorizer.php:161)"}
$ ./validate.php
Component
Version
LibreNMS
22.7.0
DB Schema
2022_07_19_081224_plugins_unique_index (243)
PHP
8.0.21
Python
3.10.4
MySQL
10.5.16-MariaDB-1:10.5.16+maria~focal
RRDTool
1.7.2
SNMP
5.9.3
====================================
[OK] Installed from the official Docker image; no Composer required
[OK] Database connection successful
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK]
[OK] Database schema correct
[OK] MySQl and PHP time match
[WARN] IPv6 is disabled on your server, you will not be able to add IPv6 devices.
[OK] rrd_dir is writable
[OK] rrdtool version ok
[WARN] Updates are managed through the official Docker image
I have the same problem,
In the log it sends me the following error
production.ERROR: ldap_get_entries(): Argument #2 ($result) must be of type LDAP\Result, bool given {“exception”:"[object] (TypeError(code: 0): ldap_get_entries(): Argument #2 ( $result) must be of type LDAP\Result, bool given at /opt/librenms/LibreNMS/Authentication/ActiveDirectoryAuthorizer.php:161)"}
Also running PHP 8.1 and my Active Directory authentication is no longer working and the logs show exactly the same thing. Had to switch back to mysql to get back in.