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