forked from extern/egroupware
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 = '';
|
||||
|
||||
if($query)
|
||||
{
|
||||
reset($this->stock_contact_fields);
|
||||
$myfilter = $this->makefilter($filterfields,$this->stock_contact_fields,$query,$DEBUG);
|
||||
{
|
||||
// the old code was searching about all fields
|
||||
// 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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user