[sork] ldap problem

David Chang david at thbuo.gov.tw
Thu Apr 17 15:17:59 PDT 2003


Hi all:
I saved ldif file as UTF-8 format which convert from BIG-5,and then use ldapadd
shell command to add these user account into openldap server (2.0.25) for our
organization.

After this,in turba i also have a address book called "local_ldap" which include
all user account for our organization .All of the user accounts look right in
Chinese format in Turba's Browse (see
http://210.241.49.67/~txg16/tmp/920417_1.jpg ) ,But in Account project i got
these error messages (also see http://210.241.49.67/~txg16/tmp/920417_2.jpg ):

=============================================================================
Notice: Undefined offset: 0 in
/usr/local/apache/horde.beta/accounts/lib/Driver/ldap.php on line 73

Notice: Undefined offset: 0 in
/usr/local/apache/horde.beta/accounts/lib/Driver/ldap.php on line 76

Notice: Undefined offset: 0 in
/usr/local/apache/horde.beta/accounts/lib/Driver/ldap.php on line 112

Notice: Undefined offset: 0 in
/usr/local/apache/horde.beta/accounts/lib/Driver/ldap.php on line 147

==============================================================================

Question:
Does /account/conf/config.php need options such as charset,ldap-vesion specified
in it(like /turba/conf/source.php) ,if ldap driver selected ?

My Horde ENV can be found here, http://210.241.49.68/horde.beta/test.php

Related config:
[Horde/conf/nls.php]
$nls['conf']['enable_utf'] = true;

[Turba/conf/source.php]
/**
 * A local address book in an LDAP directory. This implements a public
 * (shared) address book.
 */
$cfgSources['local_ldap'] = array(
    'title' => _("Shared Directory"),
    'type' => 'ldap',
    'params' => array(
        'server' => 'webmail.example.com',
        'port' => 389,
        'root' => 'dc=test,dc=example.com',
        'bind_dn' => 'cn=root,dc=test,dc=example.com',
        'bind_password' => 'WhoCare',
        'sizelimit' => 200,
        'dn' => array('cn'),
        'objectclass' => 'person',
        'charset' => 'UTF8',
        'version' => 3
    ),
    'map' => array(
        '__key' => 'dn',
        'name' => 'cn',
        'email' => 'maillocaladdress',


[Accounts/conf/conf.php]
$conf['server']['driver'] = 'ldap';
$conf['server']['params']['host'] = 'webmail.example.com';
$conf['server']['params']['port'] = 389;
$conf['server']['params']['basedn'] = 'dc=test,dc=example.com';
$conf['server']['params']['attr'] = 'uid';
$conf['server']['params']['quota_path'] = '/usr/bin/quota';
$conf['server']['params']['grep_path'] = '/bin/grep';
$conf['menu']['apps'] = array('passwd');






More information about the sork mailing list