The only error message that pops up in librenms.log is:
Trying to access array offset on value of type int {“exception”:“[object] (ErrorException(code: 0): Trying to access array offset on value of type int at /opt/librenms/LibreNMS/Authentication/LdapAuthorizer.php:131)”}
./validate.php output:
Component
Version
LibreNMS
23.8.2-12-g744ff7543 (2023-08-28T08:39:03-06:00)
DB Schema
2023_06_18_201914_migrate_level_to_roles (257)
PHP
8.1.22
Python
3.9.16
Database
MariaDB 10.7.8-MariaDB
RRDTool
1.7.0
SNMP
5.8
===========================================
[OK] Composer Version: 2.5.8
[OK] Dependencies up-to-date.
[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] Database and column collations are correct
[OK] Database schema correct
[OK] MySQl and PHP time match
[OK] Active pollers found
[OK] Dispatcher Service not detected
[OK] Locks are functional
[OK] Python poller wrapper is polling
[OK] Redis is unavailable
[OK] rrd_dir is writable
[OK] rrdtool version ok
./daily.sh output:
Updating to latest codebase OK
Updating Composer packages OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
Thank you for working on this. With the latest commits pulled, I was able to get signed back in however I’m still unable to access the “Manage Users” screen even though my account is an admin. I’m getting the “403 This Action is Unauthorized screen” with no errors showing up in librenms.log. I also noticed that it is displaying in “Light” mode despite my CSS settings set to “Dark” but this is less important.
Those two commands you provided seems to have done the trick. I’m able to access the Manage Users page now. I can confirm that we configuring LDAP groups via auth_ldap_groups in config.php. My only apparent issue is the CSS setting now. Thank you much!
Our LibreNMS LDAP Authorization stopped working this morning with the error in the log:
Trying to access array offset on value of type int {“exception”:“[object] (ErrorException(code: 0): Trying to access array offset on value of type int at /opt/librenms/LibreNMS/Authentication/LdapAuthorizationAuthorizer.php:133)”}
Try running ./daily.sh and then afterwards, if everything shows OK, run the two commands murrant provided:
lnms db:seed --class=‘Database\Seeders\RolesSeeder’
lnms tinker --execute=‘Bouncer::refresh()’
I suggest you submit a pull request with your fix. (go to the file on github and click the edit button, then create a pull request after you have saved your edit)