Ignore:
Timestamp:
Dec 15, 2010 4:57:18 PM (2 years ago)
Author:
thomasb
Message:

Implement new config option 'fieldmap' for ldap address books

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/devel-addressbook/config/main.inc.php.dist

    r4317 r4341  
    449449  'search_base_dn' => '', 
    450450  'search_filter'  => '',   // e.g. '(&(objectClass=posixAccount)(uid=%u))' 
    451  
    452451  'writable'      => false,   // Indicates if we can write to the LDAP directory or not. 
    453452  // If writable is true then these fields need to be populated: 
     
    458457  'ldap_version'  => 3,       // using LDAPv3 
    459458  'search_fields' => array('mail', 'cn'),  // fields to search in 
    460   'name_field'    => 'cn',    // this field represents the contact's name 
    461   'email_field'   => 'mail',  // this field represents the contact's e-mail 
    462   'surname_field' => 'sn',    // this field represents the contact's last name 
    463   'firstname_field' => 'gn',  // this field represents the contact's first name 
     459  'fieldmap' => array(      // mapping of contact fields to directory attributes 
     460    // roundcube  => ldap 
     461    'name'        => 'cn', 
     462    'surname'     => 'sn', 
     463    'firstname'   => 'givenName', 
     464    'phone'       => 'telephoneNumber', 
     465    'email'       => 'mail', 
     466    'street'      => 'street', 
     467    'zipcode'     => 'postalCode', 
     468    'locality'    => 'l', 
     469    'country'     => 'c', 
     470    'organization' => 'o', 
     471  ), 
    464472  'sort'          => 'cn',    // The field to sort the listing by. 
    465473  'scope'         => 'sub',   // search mode: sub|base|list 
Note: See TracChangeset for help on using the changeset viewer.