<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Search problem for ldap backend</title> 
  <pubDate>Fri, 10 Apr 2026 00:42:29 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/6789</link> 
  <atom:link rel="self" type="application/rss+xml" title="Search problem for ldap backend" href="https://bugs.horde.org/ticket/6789/rss" /> 
  <description>Search problem for ldap backend</description> 
 
   
   
  <item> 
   <title>I have a problem while search email field for ldap backend,a</title> 
   <description>I have a problem while search email field for ldap backend,and alway empty result return.

Search on other field for this ldap backend work good.



http://www.david.tmv.gov.tw/tmp/search_by_name.gif

http://www.david.tmv.gov.tw/tmp/search_by_email.gif



Partial sources.php for turba

     &#039;search&#039; =&gt; array(

         &#039;name&#039;,

         &#039;email&#039;,

         &#039;homePhone&#039;,

         &#039;workPhone&#039;,

         &#039;cellPhone&#039;,

         &#039;homeAddress&#039;,

         &#039;unit&#039;,

         &#039;id&#039;

     ),

     &#039;strict&#039; =&gt; array(

         &#039;dn&#039;,

     ),

     &#039;approximate&#039; =&gt; array(

         &#039;cn&#039;,

     ),

</description> 
   <pubDate>Fri, 30 May 2008 01:28:02 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6789#t45685</link> 
  </item> 
   
  <item> 
   <title>Can you turn on debug logs and post the ldap searches?</title> 
   <description>Can you turn on debug logs and post the ldap searches?</description> 
   <pubDate>Sat, 31 May 2008 14:11:02 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6789#t45719</link> 
  </item> 
   
  <item> 
   <title>&gt; Can you turn on debug logs and post the ldap searches?

Ju</title> 
   <description>&gt; Can you turn on debug logs and post the ldap searches?

Jun 01 07:50:58 HORDE [debug] [horde] Connected to the following memcache servers:localhost:11211 [pid 9584 on line 123 of &quot;/usr/local/apache/horde-rc/lib/Horde/Memcache.php&quot;]

Jun 01 07:50:58 HORDE [debug] [horde] Read session data (id = ed91f06d0fcf80d621d73cbbabfeeb37) [pid 9584 on line 171 of &quot;/usr/local/apache/horde-rc/lib/Horde/SessionHandler/memcache.php&quot;]

Jun 01 07:50:58 HORDE [debug] [turba] Hook _horde_hook_share_init in application horde not called. [pid 9584 on line 1629 of &quot;/usr/local/apache/horde-rc/lib/Horde.php&quot;]

Jun 01 07:50:58 HORDE [debug] [turba] LDAP query by Turba_Driver_ldap::_search(): user = txg16, root = ou=people,dc=mks,dc=example (ldap.tmv.gov.tw); filter = &quot;(&amp;(maillocaladdress=*david*))&quot;; attributes = &quot;dn, uid, cn, maillocaladdress, roomnumber, homephone, telephonenumber, mobile, homepostaladdress, sn&quot;; deref = &quot;0&quot;  ; sizelimit = 1200 [pid 9584 on line 186 of &quot;/usr/local/apache/horde-rc/turba/lib/Driver/ldap.php&quot;]

Jun 01 07:50:58 HORDE [debug] [turba] SQL query by Horde_Alarm_sql::_list(): SELECT alarm_id, alarm_uid, alarm_start, alarm_end, alarm_methods, alarm_params, alarm_title, alarm_text, alarm_snooze, alarm_internal FROM horde_alarms WHERE alarm_dismissed = 0 AND ((alarm_snooze IS NULL AND alarm_start &lt;= ?) OR alarm_snooze &lt;= ?) AND (alarm_end IS NULL OR alarm_end &gt;= ?) AND (alarm_uid = ? OR alarm_uid = ?) ORDER BY alarm_start, alarm_end [pid 9584 on line 148 of &quot;/usr/local/apache/horde-rc/lib/Horde/Alarm/sql.php&quot;]

Jun 01 07:50:58 HORDE [debug] [turba] SQL query by Turba_Driver_sql::_search(): SELECT object_id, object_type, owner_id, object_nameprefix, object_firstname, object_middlenames, object_lastname, object_namesuffix FROM turba_objects WHERE (object_type = ? AND owner_id = ?) [pid 9584 on line 166 of &quot;/usr/local/apache/horde-rc/turba/lib/Driver/sql.php&quot;]

Jun 01 07:50:58 HORDE [debug] [turba] SQL query by Turba_Driver_sql::_search(): SELECT object_id, object_type, owner_id, object_nameprefix, object_firstname, object_middlenames, object_lastname, object_namesuffix FROM turba_objects WHERE (object_type = ? AND owner_id = ?) [pid 9584 on line 166 of &quot;/usr/local/apache/horde-rc/turba/lib/Driver/sql.php&quot;]

Jun 01 07:50:58 HORDE [debug] [turba] Max memory usage: 1835008 bytes [pid 9584 on line 339 of &quot;/usr/local/apache/horde-rc/lib/Horde/Registry.php&quot;]

Jun 01 07:50:58 HORDE [debug] [turba] Wrote session data (id = ed91f06d0fcf80d621d73cbbabfeeb37) [pid 9584 on line 219 of &quot;/usr/local/apache/horde-rc/lib/Horde/SessionHandler/memcache.php&quot;]</description> 
   <pubDate>Sat, 31 May 2008 23:58:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6789#t45746</link> 
  </item> 
   
  <item> 
   <title>&gt; Jun 01 07:50:58 HORDE [debug] [turba] LDAP query by 

&gt; Tu</title> 
   <description>&gt; Jun 01 07:50:58 HORDE [debug] [turba] LDAP query by 

&gt; Turba_Driver_ldap::_search(): user = txg16, root = 

&gt; ou=people,dc=mks,dc=example (ldap.tmv.gov.tw); filter = 

&gt; &quot;(&amp;(maillocaladdress=*david*))&quot;; attributes = &quot;dn, uid, cn, 

&gt; maillocaladdress, roomnumber, homephone, telephonenumber, mobile, 

&gt; homepostaladdress, sn&quot;; deref = &quot;0&quot;  ; sizelimit = 1200 [pid 9584 on 

&gt; line 186 of &quot;/usr/local/apache/horde-rc/turba/lib/Driver/ldap.php&quot;]



And does this ldap query work in your directory? Looks perfectly fine to me? Does it return results when running directly in ldap?</description> 
   <pubDate>Sun, 01 Jun 2008 10:02:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6789#t45756</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Jun 01 07:50:58 HORDE [debug] [turba] LDAP query by

&gt;&gt; T</title> 
   <description>&gt;&gt; Jun 01 07:50:58 HORDE [debug] [turba] LDAP query by

&gt;&gt; Turba_Driver_ldap::_search(): user = txg16, root =

&gt;&gt; ou=people,dc=mks,dc=example (ldap.tmv.gov.tw); filter =

&gt;&gt; &quot;(&amp;(maillocaladdress=*david*))&quot;; attributes = &quot;dn, uid, cn,

&gt;&gt; maillocaladdress, roomnumber, homephone, telephonenumber, mobile,

&gt;&gt; homepostaladdress, sn&quot;; deref = &quot;0&quot;  ; sizelimit = 1200 [pid 9584 on

&gt;&gt; line 186 of &quot;/usr/local/apache/horde-rc/turba/lib/Driver/ldap.php&quot;]

&gt;

&gt; And does this ldap query work in your directory? Looks perfectly fine 

&gt; to me? Does it return results when running directly in ldap?

Hello jan,

I found that is because of maillocaladdress has no equality rule on it.

The original misc.schema for maillocaladdress:

attributetype ( 2.16.840.1.113730.3.1.13

        NAME &#039;mailLocalAddress&#039;

        DESC &#039;RFC822 email address of this recipient&#039;

        EQUALITY caseIgnoreIA5Match

        SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )



I add line  &quot; SUBSTR caseIgnoreSubstringsMatch&quot; to it ,and fixed.



Thank you,jan.



david</description> 
   <pubDate>Mon, 02 Jun 2008 03:58:01 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6789#t45773</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
