Details
-
New Feature
-
Resolution: Unresolved
-
Major
-
None
-
Professional Edition
-
centos8, php 7.2, Observium 22.4.11952
Description
As in ticket OBS-1684 described before: I assign users authenticated via LDAP read-only devices. But when them logging in their page is empty. (No device listed)
I tried to assign users to a role, which contains a set of devices, try to assign directly some devices, logged out and logged in again - nothing helps.
we're using a standard ldap, all users are listed so I have no idea anymore and it looks like a bug.
Attachments
Issue Links
- mentions
-
OBS-1684 Normal users cant see anything they have access to
-
- Closed
-
it's set in includes/authenticate.inc.php, which calls the ldap_* functions, but i couldn't work out which bit of all that horrific mess was doing something different to the other bit.
285: $_SESSION['user_id'] = auth_user_id($_SESSION['username']);
authenticate-functions.inc.php :
179: return call_user_func($config['auth_mechanism'] . '_auth_user_id', $username);
Which is 371 in includes/authentication/ldap.inc.php
I suspect that the return of ldap_auth_user_list() used in ldap_auth_user_info() to get $userdata2 doesn't populate user_id properly. Perhaps it's just as simple as calling ldap_auth_user_id i the ldap_auth_user_info() function?
This stuff is such a nightmare to test because we aren't LDAP users.