[turba] search problem for ldap backend

David Chang david at tmv.gov.tw
Thu Nov 27 17:55:50 PST 2003


Hi all:
In Turba: 2.0-cvs if i search ldap (openldap v3) backend ,got such errors
message.
------------------------------------------------------------------------

Notice: Undefined offset: 0 in /usr/local/apache/horde.beta/turba/lib/Source.php
on line 311

Notice: Undefined offset: 0 in /usr/local/apache/horde.beta/turba/lib/Source.php
on line 311

Notice: Undefined offset: 0 in /usr/local/apache/horde.beta/turba/lib/Source.php
on line 311

Warning: Cannot modify header information - headers already sent by (output
started at /usr/local/apache/horde.beta/turba/lib/Source.php:311) in
/usr/local/apache/horde.beta/turba/templates/common-header.inc on line 3
----------------------------------------------------------------------------


Here is part of my Turba/config/source.php
------------------------------------------
$cfgSources['localldap'] = array(
 'title' => _("Shared Directory"),
 'type' => 'ldap',
 'params' => array(
 'server' => 'localhost',
 'port' => 389,
 'root' => 'dc=company',
 'bind_dn' => 'cn=root,dc=company',
 'bind_password' => '******',
 'sizelimit' => 1000,
 'dn' => array('cn'),
 // 'objectclass' => array('top', 'person'),
 'objectclass' => array('person'),
 'charset' => 'utf-8',
 'version' => 3
 ),
'map' => array(
 '__key' => 'dn',
 'name' => 'cn',
 'email' => 'maillocaladdress',
        'homePhone' => 'homephone',
        'workPhone' => 'telephonenumber',
        'uid' => 'uid',
        'homeAddress' => 'homeaddress'
    ),
    'search' => array(
        'name',
        'email',
        'homePhone',
        'workPhone',
        'cellPhone',
        'homeAddress'
     ),
'strict' => array(
        'dn',
    ),
    'public' => true,
    'readonly' => true,
    'admin' => array('root'),
    'export' => false
);




More information about the turba mailing list