Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 532a5e4ea1
Fetching contributors…

Cannot retrieve contributors at this time

96 lines (86 sloc) 2.88 kb
<?php
/**
* Configures fieldname - LDAP attribute associations
*
* If you use other attributes you may change the assignments here.
* Note the arrays need to remain flippable, eg. both sides have to
* be unique
*
* Fields starting with a * may contain multiple values (needs to be
* handled by the template as well)
*/
/**
* The object classes to store with contacts
*/
$OCLASSES[] = 'inetOrgPerson';
/**
* The standard fields suported by OpenLDAP's default schemas
*/
$FIELDS = array(
'dn' => 'dn', // don't touch!
'name' => 'sn',
'displayname' => 'cn',
'givenname' => 'givenName',
'title' => 'title',
'organization' => 'o', // aka. company
'office' => 'physicalDeliveryOfficeName',
'street' => 'postalAddress',
'zip' => 'postalCode',
'location' => 'l', // aka. city
'phone' => 'telephoneNumber',
'fax' => 'facsimileTelephoneNumber',
'mobile' => 'mobile', // aka. cell phone
'pager' => 'pager',
'homephone' => 'homePhone',
'homestreet' => 'homePostalAddress',
'photo' => 'jpegPhoto',
'url' => 'labeledURI',
'note' => 'description',
'manager' => 'manager', // aka. key account
'_mail' => 'mail',
);
/**
* If the provided "extended" schema is used the following fields
* and object classes are added
*/
$OCLASSES[] = 'contactPerson';
$FIELDS['anniversary'] = 'anniversary';
$FIELDS['_marker'] = 'marker'; // aka. tags
$FIELDS['country'] = 'c';
/**
* If the open exchange schema is used the following fields
* and object classes are added
*/
/* comment in if you want to use it
$OCLASSES[] = 'OXUserObject';
$FIELDS['country'] = 'userCountry';
$FIELDS['birthday'] = 'birthDay';
$FIELDS['ipphone'] = 'IPPhone';
$FIELDS['_marker'] = 'OXUserCategories';
$FIELDS['instantmessenger'] = 'OXUserInstantMessenger';
$FIELDS['timezone'] = 'OXTimeZone';
$FIELDS['position'] = 'OXUserPosition';
$FIELDS['certificate'] = 'relClientCert';
$FIELDS['domain'] = 'domain';
*/
/**
* If the Evolution schema is used the following fields
* and object classes are added
*/
/* comment in if you want to use it
$OCLASSES[] = 'evolutionPerson';
$OCLASSES[] = 'officePerson';
$FIELDS['department'] = 'ou';
$FIELDS['state'] = 'st';
$FIELDS['country'] = 'c';
$FIELDS['phone'] = 'primaryPhone';
$FIELDS['switchboard'] = 'companyPhone';
$FIELDS['note'] = 'note';
$FIELDS['manager'] = 'seeAlso';
$FIELDS['birthday'] = 'birthDate';
$FIELDS['spouse'] = 'spouseName';
*/
/**
* Flip the array
*/
$RFIELDS = array_flip($FIELDS);
Jump to Line
Something went wrong with that request. Please try again.