[turba] Search Ldap contact not work in compose...

Jan Schneider jan at horde.org
Thu Aug 6 09:06:11 UTC 2009


Zitat von Ryu <list-no-spam at ryux.org>:

> Hi all,
>
> My problem is the same as on this bug report :
>
> http://bugs.horde.org/ticket/8227
>
> "There's no resultset, (using Ldap catalog), when I try to search a
> contact in compose window or portal window. But, the search it's OK on
> normal contacts window."
>
> I try to debug and here are the trace :
>
> LDAP query by Turba_Driver_ldap::_search():
>
> user = ryu, root = ou=famille,ou=contacts,dc=exemple,dc=fr (mail.exemple.fr);
> filter =  
> "(&(sn=abcde)(|(givenname=*abcde*)(street=*abcde*)(postalCode=*abcde*)(l=*abcde*)(o=*abcde*)))";
>
> attributes = "dn, uid, givenname, sn, surnom, dateDeNaissance,  
> jpegPhoto, street, postalCode, l, c, workStreet, workPostalCode,  
> workCity, workCountry, mail, workMail, otherMail, adresseIM,  
> homephone, telephonenumber, mobile, operateur, workCellPhone, voip,  
> facsimiletelephonenumber, workFax, title, o, categorie, description,  
> labeledURI, object_pgppublickey, object_smimepublickey";
>
> deref = "0"  ;
> sizelimit = 200
>
>
> And the sources.php search attributes...
>
> 'search' => array(
>          'lastname',
>          'firstname',
>          'company',
>          'emails',
>          'homeCity',
>          'homePostalCode',
>          'homeStreet'
>      ),
>      'strict' => array(
>          'sn',
>      ),
>      'approximate' => array(
>          'givenname',
> 		 'sn',
>          'o',
>          'l'
>      ),
>
> If I try this filter, the result is ok. That is fortunately normal !
>
> user = ryu, root = ou=famille,ou=contacts,dc=exemple,dc=fr (mail.exemple.fr);
> filter =  
> "(|(sn=abcde)(|(givenname=*abcde*)(street=*abcde*)(postalCode=*abcde*)(l=*abcde*)(o=*abcde*)))";
>
> So I don't understand why this AND clause...
>
> Any idea ?

 From sources.php:

  * strict:      A list of native field/attribute names that must
  *              always be matched exactly in a search.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digitale PGP-Unterschrift
URL: <http://lists.horde.org/archives/turba/attachments/20090806/f21d2ae2/attachment.bin>


More information about the turba mailing list