[turba] Search problem using LDAP. Turba H3 (2.0.2)

Anant S Athavale asa at isac.ernet.in
Wed Apr 27 06:10:42 PDT 2005



  Dear list members,

  I have a small problem with Search option using Turba H3 (2.0.2).

  When I search with following options:

  Find Name matching "xxxx" from "MY LDAP Directory".  It gives
output. But, output also contains also contains unwanted entries. 
Actually, it just does not look at "name" field in LDAP alone, but
also searches from other attributes and shows the output.  

  My requirement is : it should search only in "name" field and no
other attribute.

  The problem could be due to wrong settings in sources.php. Can
anybody help in providing a solution for this problem.

  ----------------------------------------

  sources.php (part of it).

  ---------------------------------------

  $cfgSources['localldap'] = array(
    'title' => _("ISAC E-Mail Directory"),
    'type' => 'ldap',
    'params' => array(
        'server' => 'localhost',
        'port' => 389,
        'root' => 'dc=isro, o=dos',
         // 'bind_dn' => 'cn=admin,ou=users,dc=example,dc=com',
         // 'bind_password' => '********',
         //'sizelimit' => 200,
        'dn' => array('cn'),
        'objectclass' => array('employee'),
        'charset' => 'iso-8859-1',
        // check if all required attributes for an entry are set and
add them
        // if needed.
        'checkrequired' => false,
        // string to put in missing required attributes.
        'checkrequired_string' => ' ',
        'version' => 3
    ),
    'map' => array(
        '__key' => 'dn',
        '__uid' => 'uid',
        'name' => 'name',
        'email' => 'mail',
        'homePhone' => 'homephone',
        'workPhone' => 'telephonenumber',
        'cellPhone' => 'mobiletelephonenumber',
        'homeAddress' => 'homepostaladdress'
        // 'freebusyUrl' => 'calFBURL'
    ),
    'search' => array(
        'name',
        'email'
    ),
    'strict' => array(
        'dn'
    ),
    'public' => true,
    'readonly' => true,
    'admin' => array(),
    'export' => true
);

Regards,

Anant Athavale,
Computer and Information Group,
ISRO Satellite Centre,
Airport Road,
Bangalore - 560017
INDIA.


More information about the turba mailing list