[turba] Shared LDAP Directory

Jörg Eichhorn eichhorn at ponton-consulting.de
Thu Jun 24 09:04:16 PDT 2004


Hi,

this works quite well with the turba from cvs head. I've done some small 
changes to the ldap access method to get the stuff with the mapped name to 
first & lastname work. In the access methods, the cn will be generated by 
these values.

Here is my sources.php:

$cfgSources['localldap'] = array(
    'title' => _("Addressbook"),
    'type' => 'ldap',
    'params' => array(
        'server' => 'localhost',
        'port' => 389,
        'root' => 'ou=Addressbook,dc=local,dc=domain',
        'bind_dn' => 'uid=adressbookadmin,dc=local,dc=domain',
        'bind_password' => 'abc',
        'sizelimit' => 200,
        'dn' => array('cn'),
        'objectclass' => array('top',
                               'person',
                               'inetOrgPerson'),
        'charset' => 'iso-8859-1',
        'version' => 3
    ),
    'map' => array(
        '__key' => 'dn',
        'name'              => array(
           'fields' => array(
               'firstname',
               'lastname'
           ),
           'format' => '%s %s'),
        'firstname'         => 'givenName',
        'lastname'          => 'sn',
        'email' => 'mail',
        'company' => 'o',
        'companyAddress' => 'postaladdress',
        'homePhone' => 'homephone',
        'workPhone' => 'telephonenumber',
        'fax'       => 'facsimileTelephoneNumber',
        'cellPhone' => 'mobile',
        'homeAddress' => 'homepostaladdress'
    ),
    'search' => array(
        'name',
        'firstname',
        'lastname',
        'email',
        'company',
        'homePhone',
        'workPhone',
        'cellPhone',
        'homeAddress'
    ),


    'strict' => array(
        'dn',
    ),
    'public' => true,
    'readonly' => false,
    'admin' => array(Auth::getAuth()),
    'export' => true
);


Cheers,
 Jörg Eichhorn



More information about the turba mailing list