[turba] Issues with LDAP and Personal Address Book.

Jean-Yves Avenard jyavenard at gmail.com
Thu Jan 18 05:00:51 PST 2007


Hi

I'm trying to set up turba to use a LDAP backend for storing personal
address book.

But I'm hitting a wall.

If I just uncomment in horde/turba/config the configuration the sample
ldap personal address book, it will not show up in the administration
page in the list of available address book.

Here is a sample of my config
$uid = Auth::getBareAuth();
$basedn = 'ou=OxObjects,dc=hydrix,dc=com';
$cfgSources['localldap'] = array(
    'title' => _("ldap address book"),
    'type' => 'ldap',
    'params' => array(
        'server' => 'server2',
        'tls' => false,
        'root' => 'ou=' . $uid . ',ou=personal_addressbook,' . $basedn,
        'bind_dn' => 'uid=' . $uid . ',ou=People,' . $basedn,
        'bind_password' => Auth::getCredential('password'),
        'dn' => array('cn', 'uid'),
        'objectclass' => array('top',
                               'person',
                               'inetOrgPerson',
                               // 'calEntry',
                               'organizationalPerson'),
        'scope' => 'one',
        'charset' => 'utf-8',
        'version' => 3
    ),
    'map' => array(
....

So this will not show up in the list.
However, after playing up, I found that if I replace:
'bind_dn' => 'uid=' . $uid . ',ou=People,' . $basedn,
'bind_password' => Auth::getCredential('password'),
with
'bind_dn' => '',
'bind_password' => '',

Then it will show up !!!

Any ideas of what could be happening?

I'm using php 5.2.0. This is on a FreeBSD 6.2 machine, using the port
version of horde and Turba


Thank you
Jean-Yves
PS: result from horde/test.php:
Horde Version

    * Horde: 3.1.3

Horde Applications

    * Horde: 3.1.3
    * Imp: H3 (4.1.3) (run Imp tests)
    * Ingo: H3 (1.1.2) (run Ingo tests)
    * Kronolith: H3 (2.1.4)
    * Nag: H3 (2.1.1)
    * Turba: H3 (2.1.2) (run Turba tests)

PHP Version

    * View phpinfo() screen
    * View loaded extensions
    * PHP Version: 5.2.0
    * PHP Major Version: 5.2
    * PHP Minor Version: 0
    * PHP Version Classification: release
    * Wow, a mystical version of PHP from the future. Let
dev at lists.horde.org know what version you have so we can fix this
script.

PHP Module Capabilities

    * Ctype Support: Yes
    * DOM XML Support: Yes
    * FTP Support: Yes
    * GD Support: Yes
    * Gettext Support: Yes
    * Iconv Support: Yes
    * IMAP Support: Yes
    * LDAP Support: Yes
    * Mbstring Support: Yes
    * Mcrypt Support: Yes
    * MIME Magic Support (fileinfo): Yes
    * memcached Support (memcache): No
      The memcache PECL module is needed only if you are using the
memcached SessionHandler. See horde/docs/INSTALL for information on
how to install PECL/PHP extensions.
    * MIME Magic Support (mime_magic): No
      The fileinfo PECL module (see above) or the mime_magic PHP
extension will most likely provide faster MIME Magic lookups than the
built-in Horde PHP magic code. See horde/docs/INSTALL for information
on how to install PECL/PHP extensions.
    * MySQL Support: Yes
    * OpenSSL Support: Yes
    * PostgreSQL Support: No
    * Session Support: Yes
    * XML Support: Yes
    * Zlib Support: Yes

Miscellaneous PHP Settings

    * magic_quotes_runtime disabled: Yes
    * memory_limit disabled: No
      If PHP's internal memory limit is turned on and if not set high
enough Horde will not be able to handle large data items (e.g. large
mail attachments in IMP). If possible, you should disable the PHP
memory limit by recompiling PHP without the "--enable-memory-limit"
flag. If this is not possible, then you should set the value of
memory_limit in php.ini to a sufficiently high value (Current value of
memory_limit: 16M).
    * safe_mode disabled: Yes
    * session.use_trans_sid disabled: Yes
    * session.auto_start disabled: Yes

File Uploads

    * file_uploads enabled: Yes
    * upload_max_filesize: 2M
    * post_max_size: 8M

Required Horde Configuration Files

    * config/conf.php: Yes
    * config/mime_drivers.php: Yes
    * config/nls.php: Yes
    * config/prefs.php: Yes
    * config/registry.php: Yes

PHP Sessions

    * Session counter: 3
    * To unregister the session: click here

PEAR

    * PEAR Search Path (PHP's include_path):
/usr/local/www/horde/lib:/usr/local/share/pear:.
    * PEAR: Yes
    * Recent PEAR: Yes
    * Mail: Yes
    * Mail_Mime: Yes
    * Log: Yes
    * DB: Yes
    * Net_Socket: Yes
    * Date: Yes
    * Auth_SASL: Yes
    * HTTP_Request: Yes
    * File: Yes
    * Net_SMTP: Yes
    * Services_Weather: Yes
    * Cache: Yes
    * XML_Serializer: Yes


More information about the turba mailing list