From 26a852cf05d9deb5c61399b7f54f865edd64c818 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Thu, 22 Mar 2001 20:36:26 +0000 Subject: [PATCH] Search working, still need to limit to one match per row --- addressbook/inc/class.contacts_ldap.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addressbook/inc/class.contacts_ldap.inc.php b/addressbook/inc/class.contacts_ldap.inc.php index b541989cfd..c5dd0f85b9 100644 --- a/addressbook/inc/class.contacts_ldap.inc.php +++ b/addressbook/inc/class.contacts_ldap.inc.php @@ -357,7 +357,7 @@ $ldap_fields = array(); $total = 0; while (list($name,$value) = each($stock_fieldnames) ) { - $lquery = $value.'='.$query; + $lquery = $value.'=*'.$query.'*'; //echo $lquery; exit; $sri = ldap_search($this->ldap, $phpgw_info["server"]["ldap_contact_context"], $lquery); $ldap_fields += ldap_get_entries($this->ldap, $sri);