[turba] Configuration for LDAP Problem
Marc Carmier
marc.carmier at carmier.org
Sun Jan 12 14:03:10 PST 2003
Hello,
I'm not very fluent with LDAP, and this morning I've tried to install
OpenLdap
following an article in Linux journal and add access to it via turba
Everything working allrigh for read access but I have two problems :
- When I edit attribute of an existing contact, I had no error message, but
nothing is done
- When I want to add an new contact I obtain a message telling me contact my
system administrator,
and when I look in horde.log :
Failed to add an object: [65] "Object class violation" (attributes:
[a:2:{s:2:"cn";s:16:"Someone Youknow";s:11:"objectclass";s:6:"person";}]).
[on line 36 of "/home/httpd/html/horde/turba/addobjectaction.php"]
Please, can you help me !!
Marc Carmier
****************************************************************
#ldapsearch -x -b 'dc=example,dc=org'
****************************************************************
dn: dc=example,dc=org
objectClass: dcObject
dc: carmier
dn: cn=admin,dc=example,dc=org
objectClass: organizationalRole
objectClass: simpleSecurityObject
cn: admin
description: LDAP administrator
dn: ou=People,dc=example,dc=org
objectClass: organizationalUnit
ou: People
dn: ou=contacts,ou=people, dc=example, dc=org
ou: contacts
ou: people
objectClass: organizationalUnit
objectClass: domainRelatedObject
associatedDomain: example.org
****************************************************************
In horde/turba/config/sources.php
****************************************************************
$cfgSources['localldap'] = array(
'title' => 'Annuaire r2d2',
'type' => 'ldap',
'params' => array(
'server' => 'localhost',
'port' => 389,
'root' => 'ou=contacts,ou=people,dc=example,dc=org',
'bind_dn' => 'cn=admin,dc=example,dc=org',
'bind_password' => 'DontDreamAboutIt',
'dn' => array('cn'),
'objectclass' => 'person',
'version' => 3
),
'map' => array(
'__key' => 'dn',
'name' => 'cn',
'email' => 'mail',
'homePhone' => 'telephonenumber',
'workPhone' => 'workphonenumber',
'cellPhone' => 'cellphonenumber',
'homeAddress' => 'homeaddress'
),
'search' => array(
'name',
'email',
'homePhone',
'workPhone',
'cellPhone',
'homeAddress'
),
'strict' => array(
'dn'
),
'public' => true,
'readonly' => false,
'admin' => array(),
'export' => true
);
More information about the turba
mailing list