From a80cb15d661fad1fed07be12cdd57b690079357b Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 11 Jul 2016 15:08:26 +0200 Subject: [PATCH] * LDAP/UCS: groups not found when searching for them eg. in custom fields (account-type=both) --- api/src/Accounts/Ldap.php | 2 ++ 1 file changed, 2 insertions(+) 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))";