[turba] Problem getting LDAP shared addressbook to work correctly

amith at xalan.com amith at xalan.com
Wed Jun 4 06:31:32 PDT 2003


What do you have in attributes.php?

Amith

Quoting Anders Bruun Olsen <anders at bruun-olsen.net>:

| Hi,
|
| I have a Horde+IMP installation working nicely and have now added turba
| which I want to interface our LDAP server. That also works except that
| some of the attrs isn't shown by turba!
|
| An example of an ldap lookup:
|
| gorm root # ldapsearch -b "ou=people,dc=dsl,dc=dk" "(|(|(cn=*anders*)))"
| version: 2
|
| #
| # filter: (|(|(cn=*anders*)))
| # requesting: ALL
| #
|
| # Anders Bruun Olsen, people, dsl, dk
| dn: cn=Anders Bruun Olsen,ou=people,dc=dsl,dc=dk
| objectClass: person
| objectClass: organizationalPerson
| objectClass: inetOrgPerson
| sn: Bruun Olsen
| cn: Anders Bruun Olsen
| telephoneNumber: 9707
| title: IT Ansvarlig
| givenName: Anders
| homePhone: 00000000
| mail: abo at PLEASEDONTSPAMMEdsl.dk
| ou: itdrift
| o: Det Danske Sprog- og Litteraturselskab
|
| # search result
| search: 2
| result: 0 Success
|
| # numResponses: 2
| # numEntries: 1
|
| Only the cn and mail attrs seem to be read correctly by turba. Here is
| my entries in config/sources.php:
|
| $cfgSources['localldap'] = array(
|     'title' => 'Shared Directory',
|     'type' => 'ldap',
|     'params' => array(
|         'server' => 'ldap.dsl.dk',
|         'port' => 389,
|         'root' => 'ou=people,dc=dsl,dc=dk',
|         'dn' => array('cn'),
|         'objectclass' => 'person',
|         'version' => 3
|     ),
|     'map' => array(
|         '__key' => 'dn',
|         'name' => 'cn',
|         'email' => 'mail',
|         'homePhone' => 'homePhone',
|         'workPhone' => 'telephoneNumber',
|         'cellPhone' => 'mobile',
|         'homeAddress' => 'homeAddress'
|     ),
|     'search' => array(
|         'name',
|         'email',
|         'homePhone',
|         'workPhone',
|         'cellPhone',
|         'homeAddress'
|     ),
|     'strict' => array(
|         'dn'
|     ),
|     'public' => true,
|     'readonly' => true,
|     'admin' => array(),
|     'export' => true
| );
|
| Can anybody tell me what I am doing wrong here?
|
| --
| Anders
| -----BEGIN GEEK CODE BLOCK-----
| Version: 3.12
| GCS/O d--@ s:+ a-- C++ $UL+++ P++ L+++ E- W+ N(+) o K? w O- M-- V
| PS+ PE@ Y+ PGP+ t 5 X R+ tv+ b+ DI+++ D+ G e- h !r y?
| ------END GEEK CODE BLOCK------
| PGPKey: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8BFECB41
|
| --
| Turba mailing list
| Frequently Asked Questions: http://horde.org/faq/
| To unsubscribe, mail: turba-unsubscribe at lists.horde.org
|





More information about the turba mailing list