[turba] New Turba Install (h3)

Carl Hultay chultay at auricnet.ca
Wed Oct 19 13:04:26 PDT 2005


I have OpenLDAP installed, and here is a copy of my config file:

# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.23.2.8 2003/05/24
23:19:14 kurt Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include         /etc/openldap/schema/core.schema
include         /etc/openldap/schema/cosine.schema
include         /etc/openldap/schema/outlook.schema
include         /etc/openldap/schema/rfc2739.schema

# Define global ACLs to disable default read access.

pidfile         /var/run/openldap/slapd.pid
argsfile        /var/run/openldap/slapd.args

# Load dynamic backend modules:
#modulepath     /usr/lib/openldap/openldap
#moduleload     back_bdb.la
#moduleload     back_ldap.la
#moduleload     back_ldbm.la
#moduleload     back_passwd.la
#moduleload     back_shell.la

# Sample security restrictions
#       Require integrity protection (prevent hijacking)
#       Require 112-bit (3DES or better) encryption for updates
#       Require 63-bit encryption for simple bind
# security ssf=1 update_ssf=112 simple_bind=64

# Sample access control policy:
#       Root DSE: allow anyone to read it
#       Subschema (sub)entry DSE: allow anyone to read it
#       Other DSEs:
#               Allow self write access
#               Allow authenticated users read access
#               Allow anonymous users to authenticate
#       Directives needed to implement policy:
# access to dn.base="" by * read
# access to dn.base="cn=Subschema" by * read

# if no access controls are present, the default policy is:
#       Allow read by all
#
# rootdn can always write!

#######################################################################
# ldbm database definitions
#######################################################################

database        bdb
checkpoint      32      30 # <kbyte> <min>
suffix          "ou=AddressBook,o=mydomain.com"
rootdn          "cn=Manager,ou=AddressBook,o=mydomain.com"
rootpw          ******

directory       /var/lib/openldap-data

schemacheck     on
lastmod         on
index           cn,sn,st                pres,eq,sub

# Indices to maintain
index   objectClass     eq

My sources.php for turba is as follows:

<?php

if (Util::extensionExists('ldap')) {
/**
 * A local address book in an LDAP directory.  This implements a public
 * (shared) address book.
 * To store freebusy information in the LDAP directory, you'll need the
 * rfc2739.schema from
 * ftp://kalamazoolinux.org/pub/projects/awilliam/misc-ldap/.
 */
$cfgSources['localldap'] = array(
    'title' => _("Shared Directory"),
    'type' => 'ldap',
    'params' => array(
        'server' => 'localhost',
        'port' => 389,
        // 'tls' => false,
        'root' => 'ou=AddressBook,o=mydomain.com',
        'bind_dn' => 'cn=Manager,ou=AddressBook,o=mydomain.com',
        'bind_password' => '******',
        'sizelimit' => 200,
        // 'filter' => '(&(uid=*)(objectClass=posixAccount))',
        'dn' => array('cn'),
        'objectclass' => array('top',
                               'microsoftaddressbook'),
        // 'scope' => 'one',
        'charset' => 'iso-8859-1',
        'checkrequired' => false,
        // 'checkrequired_string' => ' ',
        'version' => 3
    ),
    'map' => array(
        '__key' => 'dn',
        'name' => 'givenname',
        'email' => 'mail',
        'workPhone' => 'telephonenumber',
        'cellPhone' => 'mobile',
        'office' => 'department',
    ),
    'search' => array(
        'name',
        'email',
        'homePhone',
        'workPhone',
        'cellPhone',
        'homeAddress'
    ),
    //'strict' => array(
    //    'dn',
    //),
    'public' => true,
    'readonly' => false,
    'admin' => array(),
    'export' => true
);

// End LDAP check.
}

When trying to create new entries in turba, I get the following message:

There was an error importing the data: Failed to add an object: [34]
"Invalid DN syntax" DN: ,ou=AddressBook,o=wilsonblanchard.com
(attributes:
[a:3:{s:4:"mail";s:28:"al.baker at wilsonblanchard.com";s:9:"givenname";s:8:"Al Baker";s:11:"objectclass";a:2:{i:0;s:3:"top";i:1;s:20:"microsoftaddressbook";}}]).Charset:UTF-8

I tried asking the guys in #ldap for help, but they responded with 'yep,
that looks like an invalid dn syntax to me'

I have never used LDAP before, this setup is open for revamp... All I
want is the ability to share an addressbook with turba and ms outlook /
evolution / others

Any and all help is most appreciated!


More information about the turba mailing list