* Fix a parse error in failed_logins.php3
* Fix a bug in lib/defaults.php3 which did not allow the default.vals file to be used correctly
* Include password.php3 in lib/ldap/password_check.php3
+* When searching a user in ldap through the find page only try to find the users which have a uid attribute (username)
Ver 1.60:
* Use require_once when including lib/functions.php3 in lib/sql
* In the buttons toolbar Edit User should not be clickable.
require('../lib/ldap/attrmap.php3');
$attr = $attrmap[$radius_attr];
}
- $sr=@ldap_search($ds,"$config[ldap_base]", "$attr=*$search*",array('uid'),0,$max_results);
+ $sr=@ldap_search($ds,"$config[ldap_base]", "(&($attr=*$search*)(uid=*))",array('uid'),0,$max_results);
if (($info = @ldap_get_entries($ds, $sr))){
for ($i = 0; $i < $info["count"]; $i++)
$found_users[] = $info[$i]['uid'][0];