43 $mapping_rule = array();
47 $mapping_rule[
'firstname'] =
'givenName';
48 $mapping_rule[
'institution'] =
'o';
49 $mapping_rule[
'department'] =
'departmentNumber';
50 $mapping_rule[
'phone_home'] =
'homePhone';
51 $mapping_rule[
'phone_mobile'] =
'mobile';
52 $mapping_rule[
'email'] =
'mail';
53 $mapping_rule[
'photo'] =
'jpegPhoto';
56 case 'organizationalPerson':
57 $mapping_rule[
'fax'] =
'facsimileTelephoneNumber';
58 $mapping_rule[
'title'] =
'title';
59 $mapping_rule[
'street'] =
'street';
60 $mapping_rule[
'zipcode'] =
'postalCode';
61 $mapping_rule[
'city'] =
'l';
62 $mapping_rule[
'country'] =
'st';
66 $mapping_rule[
'lastname'] =
'sn';
67 $mapping_rule[
'phone_office'] =
'telephoneNumber';
71 $mapping_rule[
'firstname'] =
'givenName';
72 $mapping_rule[
'lastname'] =
'sn';
73 $mapping_rule[
'title'] =
'title';
74 $mapping_rule[
'institution'] =
'company';
75 $mapping_rule[
'department'] =
'department';
76 $mapping_rule[
'phone_home'] =
'telephoneNumber';
77 $mapping_rule[
'phone_mobile'] =
'mobile';
78 $mapping_rule[
'email'] =
'mail';
79 $mapping_rule[
'street'] =
'streetAddress';
80 $mapping_rule[
'city'] =
'l,st';
81 $mapping_rule[
'country'] =
'co';
82 $mapping_rule[
'zipcode'] =
'postalCode';
83 $mapping_rule[
'fax'] =
'facsimileTelephoneNumber';
86 return $mapping_rule ? $mapping_rule : array();
A collection of static utility functions for LDAP attribute mapping.
static _getMappingRulesByClass($a_class)
Get mapping rule by objectClass.