mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-02 03:19:56 +01:00
fix for bug [ 805146 ] ldap addressbook query slow
https://sourceforge.net/tracker/?func=detail&atid=554338&aid=805146&group_id=78745
This commit is contained in:
parent
171addbc59
commit
72f6806810
@ -395,9 +395,22 @@
|
|||||||
$myfilter = '';
|
$myfilter = '';
|
||||||
|
|
||||||
if($query)
|
if($query)
|
||||||
{
|
{
|
||||||
reset($this->stock_contact_fields);
|
// the old code was searching about all fields
|
||||||
$myfilter = $this->makefilter($filterfields,$this->stock_contact_fields,$query,$DEBUG);
|
// this was very slow
|
||||||
|
#reset($this->stock_contact_fields);
|
||||||
|
#$myfilter = $this->makefilter($filterfields,$this->stock_contact_fields,$query,$DEBUG);
|
||||||
|
|
||||||
|
// don't search about any fields any more
|
||||||
|
$search_filter = array(
|
||||||
|
'fn' => 'cn',
|
||||||
|
'n_given' => 'givenname',
|
||||||
|
'n_family' => 'sn',
|
||||||
|
'email' => 'mail',
|
||||||
|
'org_name' => 'o',
|
||||||
|
'org_unit' => 'ou'
|
||||||
|
);
|
||||||
|
$myfilter = $this->makefilter($filterfields,$search_filter,$query,$DEBUG);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user