Roundcube

Voici quelques notes de personnalisation du site Roundcube incluant la mise en place du support d’un annuaire LDAP. Donc après avoir suivi les étapes d’installation de Roundcube, vous pouvez ajuster quelques paramètres.

mod-php doit être activé

sudo nano /etc/php5/apache2/php.ini

Remplacer la ligne :

;date.timezone = par date.timezone = America/Toronto

et éditer le fichier .htaccess du site de Roudcube

php_value date.timezone America/Toronto

Pour réactiver l’installeur :

Éditer RCUBE_CONFIG_DIR/main.inc.php

$rcmail_config['enable_installer'] = true;

Annuaire LDAP

Pour avoir accès à l’annuaire LDAP, il faut ajouter les éléments suivants dans config_inc.php du site web:

//---------------------------------------
// LDAP
//---------------------------------------

$rcmail_config['ldap_public']['ldap Lafontaine-Barrette'] = array('hosts' => array('192.168.0.10'),
'port'          => 389,
'base_dn'       => 'ou=Lafontaine-Barrette,ou=Personnel,ou=Contacts,dc=infolaf,dc=net',
'bind_dn'       => 'cn=admin,dc=infolaf,dc=net',
'bind_pass'     => 'votremotdepasse',
'ldap_version'  => 3,
'filter'        => '(objectClass=inetOrgPerson)',
'search_fields' => array('mail', 'cn', 'sn', 'givenName', 'displayName', 'mobile' , 'ou', 'telephoneNumber'),
'fieldmap' => Array(
        'name'          => 'cn',
        'surname'       => 'sn',
        'firstname'     => 'givenName',
        'initials'      => 'initials',
        'jobtitle'      => 'title',
        //'email'         => 'mail',
        'department'    => 'ou',
        'phone:home'    => 'telephoneNumber',
        'phone:mobile'  => 'mobile',
        'organization' => 'o',
        'street:work' => 'street',
        'zipcode:work' => 'postalCode',
        'locality:work' => 'l',
        'region:work' => 'st',
        'country:work' => 'c',
        'phone:work' => 'telephoneNumber',
        'phone:workfax' => 'facsimileTelephoneNumber',
        'phone:mobile' => 'mobile',
        'phone:homefax' => 'otherfacsimileTelephoneNumber',
        'street:home' => 'mozillaHomeStreet',
        'region:home' => 'mozillaHomeState',
        'zipcode:home' => 'mozillaHomePostalCode',
        'locality:home' => 'mozillaHomeLocalityName',
        'email:home' => 'mail',
        'email:work' => 'mozillaSecondEmail',
        'phone:home' => 'homePhone',
        'photo' => 'jpegPhoto',
        'website:work' => 'mozillaWorkUrl',
        'website:home' => 'mozillaHomeUrl',
),
'sort'          => 'sn',
'writable'      => true
);
//'name_field'    => 'cn',
//'email_field'   => 'mail',
//'surname_field' => 'sn',
//'firstname_field' => 'givenName',
//'name_field'          => 'displayName',
//'phone:home_field'    => 'telephoneNumber',
//'phone:mobile_field'  => 'mobile',

$rcmail_config['ldap_public']['ldap Communs'] = array('hosts' => array('ldap.reseau.maison'),
'port'          => 389,
'base_dn'       => 'ou=Communs,ou=Personnel,ou=Contacts,dc=infolaf,dc=net',
'bind_dn'       => 'cn=admin,dc=infolaf,dc=net',
'bind_pass'     => 'votremotdepasse',
'ldap_version'  => 3,
'filter'        => '(objectClass=inetOrgPerson)',
'search_fields' => array('mail', 'cn', 'sn', 'givenName', 'displayName', 'mobile' , 'ou', 'telephoneNumber'),
'fieldmap' => Array(
        'name'          => 'cn',
        'surname'       => 'sn',
        'firstname'     => 'givenName',
        'initials'      => 'initials',
        'jobtitle'      => 'title',
        //'email'         => 'mail',
        'department'    => 'ou',
        'phone:home'    => 'telephoneNumber',
        'phone:mobile'  => 'mobile',
        'organization' => 'o',
        'street:work' => 'street',
        'zipcode:work' => 'postalCode',
        'locality:work' => 'l',
        'region:work' => 'st',
        'country:work' => 'c',
        'phone:work' => 'telephoneNumber',
        'phone:workfax' => 'facsimileTelephoneNumber',
        'phone:mobile' => 'mobile',
        'phone:homefax' => 'otherfacsimileTelephoneNumber',
        'street:home' => 'mozillaHomeStreet',
        'region:home' => 'mozillaHomeState',
        'zipcode:home' => 'mozillaHomePostalCode',
        'locality:home' => 'mozillaHomeLocalityName',
        'email:home' => 'mail',
        'email:work' => 'mozillaSecondEmail',
        'phone:home' => 'homePhone',
        'photo' => 'jpegPhoto',
        'website:work' => 'mozillaWorkUrl',
        'website:home' => 'mozillaHomeUrl',
),
'sort'          => 'sn',
'writable'      => true
);

$rcmail_config['ldap_public']['ldap Argouin-Desrochers'] = array('hosts' => array('ldap.reseau.maison'),
'port'          => 389,
'base_dn'       => 'ou=Argouin-Desrochers,ou=Personnel,ou=Contacts,dc=infolaf,dc=net',
'bind_dn'       => 'cn=admin,dc=infolaf,dc=net',
'bind_pass'     => 'votremotdepasse',
'ldap_version'  => 3,
'filter'        => '(objectClass=inetOrgPerson)',
'search_fields' => array('mail', 'cn', 'sn', 'givenName', 'displayName', 'mobile' , 'ou', 'telephoneNumber'),
'fieldmap' => Array(
        'name'          => 'cn',
        'surname'       => 'sn',
        'firstname'     => 'givenName',
        'initials'      => 'initials',
        'jobtitle'      => 'title',
        //'email'         => 'mail',
        'department'    => 'ou',
        'phone:home'    => 'telephoneNumber',
        'phone:mobile'  => 'mobile',
        'organization' => 'o',
        'street:work' => 'street',
        'zipcode:work' => 'postalCode',
        'locality:work' => 'l',
        'region:work' => 'st',
        'country:work' => 'c',
        'phone:work' => 'telephoneNumber',
        'phone:workfax' => 'facsimileTelephoneNumber',
        'phone:mobile' => 'mobile',
        'phone:homefax' => 'otherfacsimileTelephoneNumber',
        'street:home' => 'mozillaHomeStreet',
        'region:home' => 'mozillaHomeState',
        'zipcode:home' => 'mozillaHomePostalCode',
        'locality:home' => 'mozillaHomeLocalityName',
        'email:home' => 'mail',
        'email:work' => 'mozillaSecondEmail',
        'phone:home' => 'homePhone',
        'photo' => 'jpegPhoto',
        'website:work' => 'mozillaWorkUrl',
        'website:home' => 'mozillaHomeUrl',
),
'sort'          => 'sn',
'writable'      => true
);

$rcmail_config['ldap_public']['ldap Amis'] = array('hosts' => array('ldap.reseau.maison'),
'port'          => 389,
'base_dn'       => 'ou=Amis,ou=Personnel,ou=Contacts,dc=infolaf,dc=net',
'bind_dn'       => 'cn=admin,dc=infolaf,dc=net',
'bind_pass'     => 'votremotdepasse',
'ldap_version'  => 3,
'filter'        => '(objectClass=inetOrgPerson)',
'search_fields' => array('mail', 'cn', 'sn', 'givenName', 'displayName', 'mobile' , 'ou', 'telephoneNumber'),
'fieldmap' => Array(
        'name'          => 'cn',
        'surname'       => 'sn',
        'firstname'     => 'givenName',
        'initials'      => 'initials',
        'jobtitle'      => 'title',
        //'email'         => 'mail',
        'department'    => 'ou',
        'phone:home'    => 'telephoneNumber',
        'phone:mobile'  => 'mobile',
        'organization' => 'o',
        'street:work' => 'street',
        'zipcode:work' => 'postalCode',
        'locality:work' => 'l',
        'region:work' => 'st',
        'country:work' => 'c',
        'phone:work' => 'telephoneNumber',
        'phone:workfax' => 'facsimileTelephoneNumber',
        'phone:mobile' => 'mobile',
        'phone:homefax' => 'otherfacsimileTelephoneNumber',
        'street:home' => 'mozillaHomeStreet',
        'region:home' => 'mozillaHomeState',
        'zipcode:home' => 'mozillaHomePostalCode',
        'locality:home' => 'mozillaHomeLocalityName',
        'email:home' => 'mail',
        'email:work' => 'mozillaSecondEmail',
        'phone:home' => 'homePhone',
        'photo' => 'jpegPhoto',
        'website:work' => 'mozillaWorkUrl',
        'website:home' => 'mozillaHomeUrl',
),
'sort'          => 'sn',
'writable'      => true
);

$rcmail_config['ldap_public']['ldap Sports_Maryse'] = array('hosts' => array('ldap.reseau.maison'),
'port'          => 389,
'base_dn'       => 'ou=Sports_Maryse,ou=Groupes,ou=Personnel,ou=Contacts,dc=infolaf,dc=net',
'bind_dn'       => 'cn=admin,dc=infolaf,dc=net',
'bind_pass'     => 'votremotdepasse',
'ldap_version'  => 3,
'filter'        => '(objectClass=inetOrgPerson)',
'search_fields' => array('mail', 'cn', 'sn', 'givenName', 'displayName', 'mobile' , 'ou', 'telephoneNumber'),
'fieldmap' => Array(
        'name'          => 'cn',
        'surname'       => 'sn',
        'firstname'     => 'givenName',
        'initials'      => 'initials',
        'jobtitle'      => 'title',
        //'email'         => 'mail',
        'department'    => 'ou',
        'phone:home'    => 'telephoneNumber',
        'phone:mobile'  => 'mobile',
        'organization' => 'o',
        'street:work' => 'street',
        'zipcode:work' => 'postalCode',
        'locality:work' => 'l',
        'region:work' => 'st',
        'country:work' => 'c',
        'phone:work' => 'telephoneNumber',
        'phone:workfax' => 'facsimileTelephoneNumber',
        'phone:mobile' => 'mobile',
        'phone:homefax' => 'otherfacsimileTelephoneNumber',
        'street:home' => 'mozillaHomeStreet',
        'region:home' => 'mozillaHomeState',
        'zipcode:home' => 'mozillaHomePostalCode',
        'locality:home' => 'mozillaHomeLocalityName',
        'email:home' => 'mail',
        'email:work' => 'mozillaSecondEmail',
        'phone:home' => 'homePhone',
        'photo' => 'jpegPhoto',
        'website:work' => 'mozillaWorkUrl',
        'website:home' => 'mozillaHomeUrl',
),
'sort'          => 'sn',
'writable'      => true
);