mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix ldap fetching user_id as string (#9067)
This commit is contained in:
committed by
Neil Lathwood
parent
5064285f10
commit
01e8a6e089
@@ -358,7 +358,7 @@ class LdapAuthorizer extends AuthorizerBase
|
||||
return [
|
||||
'username' => $entry['uid'][0],
|
||||
'realname' => $entry['cn'][0],
|
||||
'user_id' => $entry[$uid_attr][0],
|
||||
'user_id' => (int)$entry[$uid_attr][0],
|
||||
'email' => $entry[Config::get('auth_ldap_emailattr', 'mail')][0],
|
||||
'level' => $this->getUserlevel($entry['uid'][0]),
|
||||
];
|
||||
|
Reference in New Issue
Block a user