mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 00:24:21 +02:00
Fixed a bug from scrutinizer
This commit is contained in:
@@ -127,7 +127,7 @@ function get_userid($username) {
|
|||||||
global $config, $ds;
|
global $config, $ds;
|
||||||
|
|
||||||
$attributes = array('objectsid');
|
$attributes = array('objectsid');
|
||||||
$result = ldap_search($ds, $config['auth_ad_base_dn'],
|
$search = ldap_search($ds, $config['auth_ad_base_dn'],
|
||||||
"(samaccountname={$username})", $attributes);
|
"(samaccountname={$username})", $attributes);
|
||||||
$entries = ldap_get_entries($ds, $search);
|
$entries = ldap_get_entries($ds, $search);
|
||||||
|
|
||||||
@@ -148,6 +148,7 @@ function deluser($username) {
|
|||||||
function get_userlist() {
|
function get_userlist() {
|
||||||
global $config, $ds;
|
global $config, $ds;
|
||||||
$userlist = array();
|
$userlist = array();
|
||||||
|
$userhash = array();
|
||||||
|
|
||||||
$ldap_groups = get_group_list();
|
$ldap_groups = get_group_list();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user