mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-24 20:26:51 -08:00
parent
f19595f525
commit
2986765a68
|
@ -269,7 +269,11 @@ class Ldap extends Model
|
|||
|
||||
if ($filter != '' && substr($filter, 0, 1) != '(') { // wrap parens around NON-EMPTY filters that DON'T have them, for back-compatibility with AdLdap2-based filters
|
||||
$filter = "($filter)";
|
||||
} elseif ($filter == '') {
|
||||
$filter = "(cn=*)";
|
||||
}
|
||||
|
||||
|
||||
$search_results = ldap_search($ldapconn, $base_dn, $filter);
|
||||
|
||||
if (!$search_results) {
|
||||
|
|
Loading…
Reference in a new issue