Author Topic: Where can we find a listing of all possible 'fieldmap' array values?  (Read 5100 times)

Offline cam815

  • Jr. Member
  • **
  • Posts: 20
I'm currently using this to map my Roundcube LDAP Addressbook fields to my Apple Open Directory:

Code: [Select]
'fieldmap' => array(      // mapping of contact fields to directory attributes
// roundcube  => ldap
'name'        => 'cn',
'surname'     => 'sn',
'firstname'   => 'givenName',
'phone:home'  => 'homePhone',
'phone:work'  => 'telephoneNumber',
'phone:mobile' => 'mobile',
'email'       => 'mail',
'street'      => 'street',
'zipcode'     => 'postalCode',
'locality'    => 'l',
'country'     => 'c',
'organization' => 'o'
);


I checked the wiki but a search for 'fieldmap' didn't turn up anything. Where can I find:

[LIST=A]
  • What array values I can use on the roundcube side of the array (left side of the defined array)?
  • What LDAP labels Apple uses for their Open Directory fields (right side of the defined array)?


I realize B is really isn't a question I should expect to be answered here but it can't hurt to ask ;)

For example, even though I have the 'Company' field filled in in my Open Directory record, it doesn't show up in my Roundcube LDAP Address Book. I don't know if the 'organization' or 'o' parts of the mapping above are correct.

Thanks in advance!

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Where can we find a listing of all possible 'fieldmap' array values?
« Reply #1 on: November 17, 2011, 09:06:27 PM »
I'm not sure on the Apple LDAP options but the standard RoundCube fields are: name, firstname, surname, middlename, prefix, suffix, nickname, jobtitle, organization, department, assistant, manager, gender, maidenname, spouse, email, phone, address, birthday, anniversary, website, im, notes, photo

Offline cam815

  • Jr. Member
  • **
  • Posts: 20
Where can we find a listing of all possible 'fieldmap' array values?
« Reply #2 on: November 21, 2011, 05:04:39 PM »
Great, thank you. The Roundcube Wiki could use this info!