Fixed a bug from scrutinizer

This commit is contained in:
Falk Stern
2015-11-10 10:03:47 +01:00
parent a785398492
commit 0eeb4d2ef8

View File

@ -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();