LDAP Read-only user can't see assigned devices

Hi,

====================================
Component | Version
--------- | -------
LibreNMS  | 1.45
DB Schema | 270
PHP       | 7.0.30-0+deb9u1
MySQL     | 5.5.62-0+deb8u1-log
RRDTool   | 1.6.0
SNMP      | NET-SNMP 5.7.3
====================================

[OK]    Composer Version: 1.7.3
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[OK]    Database schema correct

Our company uses LibreNMS with LDAP/Active Directory authentication.

We have two LibreNMS user groups in our AD ; one for our administrators and another for a few read-only users, configured as follows :

## LDAP ##
$config['auth_mechanism'] = "active_directory";
$config['auth_ad_url'] = "ldap://ad.domain.net"; 
$config['auth_ad_domain'] = "ad";
$config['auth_ad_base_dn'] = "OU=CompanyGRP,DC=ad,DC=domain,DC=net";
$config['auth_ad_binduser'] = 'librenms';
$config['auth_ad_bindpassword'] = 'redacted';
$config['auth_ad_timeout'] = 5;
$config['auth_ad_debug'] = true;
$config['active_directory']['users_purge'] = 30;
$config['auth_ad_require_groupmembership'] = true;
$config['auth_ad_groups']['Lms_Admin']['level'] = 10;
$config['auth_ad_groups']['Lms_RO']['level']  = 1;

Our read-only users have access to one or two devices, as follows :

But, when they log in, they can’t see the devices they’ve been assigned (I wanted to add a screenshot here but since I’m a new user I can only have one per post).

It was working when I first set ip up about two months ago, but stopped since.

Am I missing something or doing something wrong ?

Thanks !

The screenshot I wanted to add in my previous post :

46

Hi!

Sorry for late reply :frowning:

First, backup your users table in database and then run UPDATE users SET user_id=auth_id;

Hi!

I had to remove and to add the devices from the users again, but this seems to have fixed it.

Thanks a lot!

Did an update cause this issue?