* LDAP/UCS: groups not found when searching for them eg. in custom fields (account-type=both)

This commit is contained in:
Ralf Becker 2016-07-11 15:08:26 +02:00
parent b2964a1a87
commit a80cb15d66

View File

@ -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))";