[turba] LDAP config help

Scott Hood shood at SOLUCENTRIX.COM
Wed Oct 15 07:47:27 PDT 2003


I have ldap running and can add and serch via the command prompt.
My snippet of slapd.conf



database ldbm
suffix "dc=solucentrix,dc=com"
rootdn "cn=Manager,dc=solucentrix,dc=com"
rootpw manager
directory /var/lib/ldap
index objectClass,uid,uidNumber,gidNumber,memberUid   eq
index cn,mail,surname,givenname                       eq,subinitial


My snippet of sources.php

$cfgSources['localldap'] = array(
    'title' => 'Shared Directory',
    'type' => 'ldap',
    'params' => array(
        'server' => 'localhost',
        'port' => 389,
        'root' => 'dc=solucentrix,dc=com',
        'bind_dn' => 'cn=Manager,dc=solucentrix,dc=com',
        'bind_password' => 'manager',
        'dn' => array('cn'),
        'objectclass' => 'person',
        'version' => 3
    ),
    'map' => array(
        '__key' => 'dn',
        'name' => 'cn',
        'email' => 'mail',
        'homePhone' => 'homephone',
        'workPhone' => 'telephonenumber',
        'cellPhone' => 'mobiletelephonenumber',
        'homeAddress' => 'homepostaladdress'
    ),
    'search' => array(
        'name',
        'email',
        'homePhone',
        'workPhone',
        'cellPhone',
        'homeAddress'
    ),
    'strict' => array(
        'dn'
    ),
    'public' => true,
    'readonly' => false,
    'admin' => array('shood'),
    'export' => true
);

Right now I am only trying to get the Shared Directory work.  When I try to add 
i get

Oct 15 10:29:46 HORDE [error] [turba] Failed to add an object: [65] "Object 
class violation" (attributes: [a:7:
{s:2:"cn";s:4:"test";s:4:"mail";s:4:"test";s:9:"homephone";s:4:"test";s:15:"tele
phonenumber";s:4:"test";s:21:"mobiletelephonenumber";s:4:"test";s:17:"homepostal
address";s:4:"test";s:11:"objectclass";s:6:"person";}]). [on line 41 
of "/var/www/html/horde/turba/addobjectaction.php"]


When I browse or search I do not see what I added at the command line.  I 
applied the schema patch, also.  Can anyone give me any ideas?

Thanks

Scott

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/


More information about the turba mailing list