fixed issue with LDAP escaping

This commit is contained in:
Roland Gruber 2020-04-21 20:01:35 +02:00
parent a52393dc79
commit 56d51c8e8c
1 changed files with 1 additions and 1 deletions

View File

@ -756,7 +756,7 @@ function searchLDAPByAttribute($name, $value, $objectClass, $attributes, $scopes
$filter = ''; $filter = '';
$filterParts = array(); $filterParts = array();
if ($name != null) { if ($name != null) {
$filterParts[] = '(' . $name . '=' . ldap_escape($value) . ')'; $filterParts[] = '(' . $name . '=' . ldap_escape($value, '*', LDAP_ESCAPE_FILTER) . ')';
} }
if ($objectClass != null) { if ($objectClass != null) {
$filterParts[] = '(objectClass=' . $objectClass . ')'; $filterParts[] = '(objectClass=' . $objectClass . ')';