]> git.sur5r.net Git - contagged/blob - inc/fields.php
Added country to ldapab.schema. Closes #1
[contagged] / inc / fields.php
1 <?php
2 /**
3  * Configures fieldname - LDAP attribute associations
4  *
5  * If you use other attributes you may change the assignments here.
6  * Note the arrays need to remain flippable, eg. both sides have to
7  * be unique
8  *
9  * Fields starting with a * may contain multiple values (needs to be
10  * handled by the template as well)
11  */
12
13
14 /**
15  * The object classes to store with contacts
16  */
17 $OCLASSES[] = 'inetOrgPerson';
18
19 /**
20  * The standard fields suported by OpenLDAP's default schemas
21  */
22 $FIELDS = array(
23     'dn'           => 'dn',                          // don't touch!
24     'name'         => 'sn',
25     'displayname'  => 'cn',
26     'givenname'    => 'givenName',
27     'title'        => 'title',
28     'organization' => 'o',                           // aka. company
29     'office'       => 'physicalDeliveryOfficeName',
30     'street'       => 'postalAddress',
31     'zip'          => 'postalCode',
32     'location'     => 'l',                           // aka. city
33     'phone'        => 'telephoneNumber',
34     'fax'          => 'facsimileTelephoneNumber',
35     'mobile'       => 'mobile',                      // aka. cell phone
36     'pager'        => 'pager',
37     'homephone'    => 'homePhone',
38     'homestreet'   => 'homePostalAddress',
39     'photo'        => 'jpegPhoto',
40     'url'          => 'labeledURI',
41     'note'         => 'description',
42     'manager'      => 'manager',                     // aka. key account
43     '_mail'        => 'mail',
44 );
45
46 /**
47  * If the provided "extended" schema is used the following fields
48  * and object classes are added
49  */
50 $OCLASSES[] = 'contactPerson';
51 $FIELDS['anniversary']  = 'anniversary';
52 $FIELDS['_marker']      = 'marker';                  // aka. tags
53 $FIELDS['country']      = 'c';
54
55 /**
56  * If the open exchange schema is used the following fields
57  * and object classes are added
58  */
59 /* comment in if you want to use it
60 $OCLASSES[] = 'OXUserObject';
61 $FIELDS['country']          = 'userCountry';
62 $FIELDS['birthday']         = 'birthDay';
63 $FIELDS['ipphone']          = 'IPPhone';
64 $FIELDS['_marker']          = 'OXUserCategories';
65 $FIELDS['instantmessenger'] = 'OXUserInstantMessenger';
66 $FIELDS['timezone']         = 'OXTimeZone';
67 $FIELDS['position']         = 'OXUserPosition';
68 $FIELDS['certificate']      = 'relClientCert';
69 $FIELDS['domain']           = 'domain';
70 */
71
72 /**
73  * If the Evolution schema is used the following fields
74  * and object classes are added
75  */
76 /* comment in if you want to use it
77 $OCLASSES[] = 'evolutionPerson';
78 $OCLASSES[] = 'officePerson';
79 $FIELDS['department']  = 'ou';
80 $FIELDS['state']       = 'st';
81 $FIELDS['country']     = 'c';
82 $FIELDS['phone']       = 'primaryPhone';
83 $FIELDS['switchboard'] = 'companyPhone';
84 $FIELDS['note']        = 'note';
85 $FIELDS['manager']     = 'seeAlso';
86 $FIELDS['birthday']    = 'birthDate';
87 $FIELDS['spouse']      = 'spouseName';
88 */
89
90
91 /**
92  * Flip the array
93  */
94 $RFIELDS = array_flip($FIELDS);
95