diff --git a/api/src/Accounts/Ldap.php b/api/src/Accounts/Ldap.php index e920c4a225..685b768ab9 100644 --- a/api/src/Accounts/Ldap.php +++ b/api/src/Accounts/Ldap.php @@ -704,6 +704,8 @@ class Ldap // fall-through case 'start': $query .= '*'; + // use now exact, as otherwise groups have "**pattern**", which dont match anything + $param['query_type'] = 'exact'; // fall-through case 'exact': $filter .= "(|(uid=$query)(sn=$query)(cn=$query)(givenname=$query)(mail=$query))";