allow to filter by multiple account_id/uidNumber

This commit is contained in:
Ralf Becker 2017-04-13 12:53:32 +02:00
parent 45d2e21883
commit caad687406

View File

@ -933,8 +933,12 @@ class Ldap
} }
elseif ($value) elseif ($value)
{ {
$filters .= '(uidNumber='.Api\Ldap::quote($value).')'; if (is_array($value)) $filters .= '(|';
foreach((array)$value as $value)
{
$filters .= '(uidNumber='.(int)$value.')';
}
if (is_array($value)) $filters .= ')';
} }
break; break;