[turba] Configure an enterprise ldap server to be a contact backend for all turba users

VALOIS, Pascal pascal.valois at devinci.fr
Mon Apr 11 16:19:14 UTC 2011


Hello,

I installed horde4, imp5 and turba recently.
So far, i can read and send mail, and have a personnal adress book based 
on mysql.

but i tried to add an ldap backend adding thoses lines in backend.php :

$cfgSources['localldap'] = array(
       // Disabled by default
       'disabled' => false,
       'title' => _("Pole Universitaire Leonard de Vinci"),
       'type' => 'ldap',
       'params' => array(
           'server' => 'mout.devinci.fr',
           'port' => 389,
           'tls' => false,
           'root' => 'ou=people,dc=devinci,dc=fr',
           //'bind_dn' => 'cn=admin,ou=users,dc=example,dc=com',
           // For Active Directory:
           // 'bind_dn' => 'username at example.com',
           //'bind_password' => '********',
           'sizelimit' => 500,
           // For Active Directory:
           // 'sizelimit' => 0,
           'dn' => array('cn'),
           'objectclass' => array('top',
                                  'person',
                                  'organizationalPerson',
                                  'inetOrgPerson'),
                                  // Add 'turbaContact' to this array if 
using
                                  // 'turbaType' attribute below, and 
'calEntry'
                                  // if using 'freebusyUrl'.
           // For Active Directory:
           // 'objectclass' => array('organizationalPerson',
           //                        'user',
           //                        'group',
           //                        'contact'),
           'scope' => 'one',
           // For Active Directory:
           // 'scope' => 'sub',
           'charset' => 'utf-8',
           // Consult the LDAP schema to verify that all required 
attributes for
           // an entry are set and add them if needed.
           'checkrequired' => false,
           // Value used to fill in missing required attributes.
           'checkrequired_string' => ' ',
           // Check LDAP schema for valid syntax. If this is false an 
address
           // field is assumed to have postalAddress syntax; otherwise 
the schema
           // is consulted for the syntax to use.
           'checksyntax' => false,
           'version' => 3,

           // For Active Directory you probably want to also set the 
following
           // parameters:
           // 'deref' => LDAP_DEREF_ALWAYS,
           // 'filter' => '&(SAMAccountName=*)(mail=*)',
           // 'referrals' => 0,
       ),
       'map' => array(
           '__key' => 'dn',

           // Remove this mapping if using Active Directory server:
           '__uid' => 'uid',

           // From horde.schema.  Make sure you have 'turbaContact' 
objectClass
           // included above:
           // '__type' => 'turbaType',
           // '__members' => 'turbaMembers',

           'name' => 'cn',
           'email' => 'mail',
           'homePhone' => 'homephone',
           'workPhone' => 'telephonenumber',
           'cellPhone' => 'mobiletelephonenumber',
           'homeAddress' => 'homepostaladdress',

           // From rfc2739.schema:
           // 'freebusyUrl' => 'calFBURL',

           // For Active Directory servers:
           // 'name' => 'displayname',
           // 'title' => 'title',
           // 'cellPhone' => 'mobile',
           // 'department' => 'department',
           // 'company' => 'company',
       ),
       'search' => array(
           'name',
           'email',
           'homePhone',
           'workPhone',
           'cellPhone',
           'homeAddress'
       ),
       'strict' => array(
           'dn',
       ),
       'approximate' => array(
           'cn',
       ),
       // For Active Directory servers:
       // 'approximate' => array(
       //     'displayname',
       //     'samaccountname',
       // ),
       'export' => true,
       'browse' => true,
   );



No error found in horde.log and apache2 error.log, so i assume there is 
no missing part.
but this adress book don't appears in the interface ?

did i miss something ?

-- 

Pascal Valois
Service Informatique
Pôle Universitaire Leonard de Vinci



More information about the turba mailing list