Browse Source

fixed issue with LDAP escaping

pull/94/head
Roland Gruber 3 years ago
parent
commit
56d51c8e8c
  1. 2
      lam/lib/account.inc

2
lam/lib/account.inc

@ -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…
Cancel
Save