Topic: A much, much better Roundcube LDAP addressbook config HERE!

==== Required information ====
- iRedMail version: 0.8.3/4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: Ubuntu Precise 12.04
- Related log if you're reporting an issue:

I've updated my roundcube/conf/main.inc.php file to make the LDAP address book functionality much,much, much better. I highly recommend that this become the standard shipping config for roundcube LDAP address book installations.

The old config looked like this (or close to this) in the Global LDAP address book and the Personal LDAP address book section of the config file:
    'name_field' => 'cn',
    'email_field' => 'mail',
    'surname_field' => 'sn',
    'firstname_field' => 'givenName',
    'phone_field' => 'mobile',

this is DEPRECATED by rouncube according to notes in the code. You can delete all the 'xxxx_field' => 'xxx' entries

Here's the new way:

This works fully in my install:

  'fieldmap' => array(
    // Roundcube  => LDAP:limit
    'name'        => 'cn',
    'surname'     => 'sn',
    'firstname'   => 'givenName',
    'jobtitle'    => 'title',
    'email'       => 'mail:*',
    'phone:home'  => 'homePhone',
    'phone:work'  => 'telephoneNumber',
    'phone:mobile' => 'mobile',
    'phone:pager' => 'pager',
    'street'      => 'street',
    'zipcode'     => 'postalCode',
    'region'      => 'st',
    'locality'    => 'l',
    // if you country is a complex object, you need to configure 'sub_fields' below
    'country' => 'c',
    'organization' => 'o',
    'department'   => 'ou',
    'notes'        => 'description',
    'sub_fields' => array( 'c' => 'country' ),


Re: A much, much better Roundcube LDAP addressbook config HERE!

It's default setting for a long time:
https://bitbucket.org/zhb/iredmail/src/ … ult#cl-315


Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee