[turba] Ldap search

Julien Marchal Julien.Marchal@univ-nancy2.fr
Mon Oct 28 14:32:33 2002


Hi all,
        I don't know if it's normal but when i try to make a search in turba, 
        it make two ldap request.
        A good (with critera) : filter = "(&(mail=*)(objectclass=person)(&(&(cn=*marchal*))))";
        the second list all of person in ldap : filter = "(&(mail=*)(objectclass=person)(objectclass=*))";

        It work turba display only good people in result search but it's very slow to have it
        My ldap directory count 25000 entry.

        I use the lastest CVS for horde,imp,turba and other.

        If any one know if it's normal ?
Thanks ,

        My Ldap source config is :

$cfgSources['LDAPPersonnel'] = array(
    'title' => 'Annuaire du personnel',
    'type' => 'ldap',
    'params' => array(
        'server' => 'good.host.fr',
        'port' => 389,
        'root' => 'myroot',
        'dn' => array('dn'),
        'objectclass' => 'person',
        'filter' => 'mail=*)(objectclass=person'
    ),
    'map' => array(
        '__key' => 'dn',
        'name' => 'cn',
        'email' => 'mail',
        'workPhone' => 'telephonenumber',
        'fax' => 'facsimiletelephonenumber'
    ),
    'search' => array(
        'name'
    ),
    'strict' => array(
        'dn',
        'mail',
        'telephonenumber',
        'facsimiletelephonenumber'
    ),
    'public' => true,
    'readonly' => true,
    'export' => false,
    'encoding' => 'utf8'
);

        


-- Julien Marchal --

Email : Julien.Marchal@univ-nancy2.fr

Université NANCY 2 - C.R.I. 
13, Rue Michel Ney 
CO 75 - 54037 Nancy Cédex