fixed issue with LDAP escaping
This commit is contained in:
parent
a52393dc79
commit
56d51c8e8c
|
@ -756,7 +756,7 @@ function searchLDAPByAttribute($name, $value, $objectClass, $attributes, $scopes
|
|||
$filter = '';
|
||||
$filterParts = array();
|
||||
if ($name != null) {
|
||||
$filterParts[] = '(' . $name . '=' . ldap_escape($value) . ')';
|
||||
$filterParts[] = '(' . $name . '=' . ldap_escape($value, '*', LDAP_ESCAPE_FILTER) . ')';
|
||||
}
|
||||
if ($objectClass != null) {
|
||||
$filterParts[] = '(objectClass=' . $objectClass . ')';
|
||||
|
|
Loading…
Reference in New Issue