1 | <?php |
---|
2 | /* |
---|
3 | * Created on 20/08/2007 Por Bruno costa |
---|
4 | * |
---|
5 | * Arquivo de configuracao de catalogos externos |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | $external_srcs = array( |
---|
10 | 1 => array( |
---|
11 | 'name' => 'XXX', |
---|
12 | 'host' => 'ldap://xxx.org.br', |
---|
13 | 'dn' => 'ou=xxx,dc=org,dc=br', |
---|
14 | 'acc' => 'uid=catalogo,dc=org,dc=br', |
---|
15 | 'pw' => '!', |
---|
16 | 'obj' => 'inetOrgPerson', |
---|
17 | 'branch' => strtolower('ou'), |
---|
18 | 'quicksearch' => 'false' |
---|
19 | ), |
---|
20 | 2 => array( |
---|
21 | 'name' => 'YYY', |
---|
22 | 'host' => 'ldap://yyy.org:30389', |
---|
23 | 'dn' => 'ou=Equipe,ou=Administracao,ou=yyy,dc=org', |
---|
24 | 'acc' => 'cn=catalogo,dc=org', |
---|
25 | 'pw' => '', |
---|
26 | 'obj' => 'inetOrgPerson', |
---|
27 | 'branch' => strtolower('ou'), |
---|
28 | 'quicksearch' => 'false' |
---|
29 | ), |
---|
30 | 3 => array( |
---|
31 | 'name' => 'ZZZ', |
---|
32 | 'host' => 'ldap://zzz.org:30389', |
---|
33 | 'dn' => 'ou=zzz,dc=org', |
---|
34 | 'acc' => 'cn=catalogo,dc=org', |
---|
35 | 'pw' => '', |
---|
36 | 'obj' => 'inetOrgPerson', |
---|
37 | 'branch' => strtolower('ou'), |
---|
38 | 'quicksearch' => 'false' |
---|
39 | ) |
---|
40 | |
---|
41 | ); |
---|
42 | |
---|
43 | $external_mappings = array( |
---|
44 | 1 => array( |
---|
45 | 'contact.id_contact' => array('dn'), |
---|
46 | 'contact.photo' => array('jpegPhoto'), |
---|
47 | 'contact.prefixes.prefix' => false, |
---|
48 | 'contact.alias' => array('alias'), |
---|
49 | 'contact.given_names' => array('givenName'), |
---|
50 | 'contact.family_names' => array('sn'), |
---|
51 | 'contact.names_ordered' => array('cn'),//,'displayName'), |
---|
52 | 'contact.suffixes.suffix' => false, |
---|
53 | 'contact.birthdate' => false, |
---|
54 | 'contact.sex' => false, |
---|
55 | 'contact.pgp_key' => false, |
---|
56 | 'contact.notes' => false, |
---|
57 | 'contact.mail_forwarding_address' => array('mailForwardingAddress'), |
---|
58 | 'contact.account_type' => array('phpgwAccountType'), |
---|
59 | 'contact.account_status' => array('phpgwAccountStatus'), |
---|
60 | 'contact.account_visible' => array('phpgwAccountVisible'), |
---|
61 | 'contact.object_class' => array('objectClass'), |
---|
62 | 'contact.business_info.title' => array('title'), |
---|
63 | 'contact.business_info.department' => array('ou'), |
---|
64 | 'contact.company.company_name' => array('o'), |
---|
65 | 'contact.company.company_notes' => array('businessCategory'), |
---|
66 | |
---|
67 | 'contact.contact_related.names_ordered' => 'contact.contact_related.typeof_relation.contact_relation_name', |
---|
68 | 'contact.contact_related.typeof_relation.contact_relation_name' => array( |
---|
69 | 'manager' => array('manager'), |
---|
70 | 'secretary' => array('secretary') |
---|
71 | ), |
---|
72 | |
---|
73 | 'contact.address.address1' => 'contact.address.typeof_address.contact_address_type_name', |
---|
74 | 'contact.address.typeof_address.contact_address_type_name' => array( |
---|
75 | 'home' => array('street', 'st', 'postalAddress', 'homePostalAddress'), |
---|
76 | ), |
---|
77 | |
---|
78 | 'contact.address.postal_code' => 'contact.address.typeof_address.contact_address_type_name', |
---|
79 | 'contact.address.typeof_address.contact_address_type_name' => array( |
---|
80 | 'home' => array('PostalCode'), |
---|
81 | ), |
---|
82 | |
---|
83 | 'contact.address.city.city_name' => 'contact.address.typeof_address.contact_address_type_name', |
---|
84 | 'contact.address.typeof_address.contact_address_type_name' => array( |
---|
85 | 'home' => array('l'), |
---|
86 | ), |
---|
87 | |
---|
88 | 'contact.address.city.state.state_name' => 'contact.address.typeof_address.contact_address_type_name', |
---|
89 | 'contact.address.typeof_address.contact_address_type_name' => array( |
---|
90 | 'home' => false, |
---|
91 | ), |
---|
92 | |
---|
93 | 'contact.address.city.country.id_country' => 'contact.address.typeof_address.contact_address_type_name', |
---|
94 | 'contact.address.typeof_address.contact_address_type_name' => array( |
---|
95 | 'home' => array('c') |
---|
96 | ), |
---|
97 | |
---|
98 | 'contact.connection.connection_value' => 'contact.connection.typeof_connection.contact_connection_type_name', |
---|
99 | 'contact.connection.typeof_connection.contact_connection_type_name' => array ( |
---|
100 | 'email' => array('mail'), |
---|
101 | 'phone' => array('telephoneNumber'), |
---|
102 | 'mobile' => array('mobile'), |
---|
103 | 'pager' => array('pager'), |
---|
104 | 'fax' => array('facsimileTelephoneNumber'), |
---|
105 | 'telex' => array('telexNumber') |
---|
106 | )), |
---|
107 | 2 => array( |
---|
108 | 'contact.id_contact' => array('dn'), |
---|
109 | 'contact.photo' => array('jpegPhoto'), |
---|
110 | 'contact.prefixes.prefix' => false, |
---|
111 | 'contact.alias' => array('alias'), |
---|
112 | 'contact.given_names' => array('givenName'), |
---|
113 | 'contact.family_names' => array('sn'), |
---|
114 | 'contact.names_ordered' => array('cn'),//,'displayName'), |
---|
115 | 'contact.suffixes.suffix' => false, |
---|
116 | 'contact.birthdate' => false, |
---|
117 | 'contact.sex' => false, |
---|
118 | 'contact.pgp_key' => false, |
---|
119 | 'contact.notes' => false, |
---|
120 | 'contact.mail_forwarding_address' => array('mailForwardingAddress'), |
---|
121 | 'contact.account_type' => array('phpgwAccountType'), |
---|
122 | 'contact.account_status' => array('phpgwAccountStatus'), |
---|
123 | 'contact.account_visible' => array('phpgwAccountVisible'), |
---|
124 | 'contact.object_class' => array('objectClass'), |
---|
125 | 'contact.business_info.title' => array('title'), |
---|
126 | 'contact.business_info.department' => array('ou'), |
---|
127 | 'contact.company.company_name' => array('o'), |
---|
128 | 'contact.company.company_notes' => array('businessCategory'), |
---|
129 | |
---|
130 | 'contact.contact_related.names_ordered' => 'contact.contact_related.typeof_relation.contact_relation_name', |
---|
131 | 'contact.contact_related.typeof_relation.contact_relation_name' => array( |
---|
132 | 'manager' => array('manager'), |
---|
133 | 'secretary' => array('secretary') |
---|
134 | ), |
---|
135 | |
---|
136 | 'contact.address.address1' => 'contact.address.typeof_address.contact_address_type_name', |
---|
137 | 'contact.address.typeof_address.contact_address_type_name' => array( |
---|
138 | 'home' => array('street', 'st', 'postalAddress', 'homePostalAddress'), |
---|
139 | ), |
---|
140 | |
---|
141 | 'contact.address.postal_code' => 'contact.address.typeof_address.contact_address_type_name', |
---|
142 | 'contact.address.typeof_address.contact_address_type_name' => array( |
---|
143 | 'home' => array('PostalCode'), |
---|
144 | ), |
---|
145 | |
---|
146 | 'contact.address.city.city_name' => 'contact.address.typeof_address.contact_address_type_name', |
---|
147 | 'contact.address.typeof_address.contact_address_type_name' => array( |
---|
148 | 'home' => array('l'), |
---|
149 | ), |
---|
150 | |
---|
151 | 'contact.address.city.state.state_name' => 'contact.address.typeof_address.contact_address_type_name', |
---|
152 | 'contact.address.typeof_address.contact_address_type_name' => array( |
---|
153 | 'home' => false, |
---|
154 | ), |
---|
155 | |
---|
156 | 'contact.address.city.country.id_country' => 'contact.address.typeof_address.contact_address_type_name', |
---|
157 | 'contact.address.typeof_address.contact_address_type_name' => array( |
---|
158 | 'home' => array('c') |
---|
159 | ), |
---|
160 | |
---|
161 | 'contact.connection.connection_value' => 'contact.connection.typeof_connection.contact_connection_type_name', |
---|
162 | 'contact.connection.typeof_connection.contact_connection_type_name' => array ( |
---|
163 | 'email' => array('mail'), |
---|
164 | 'phone' => array('telephoneNumber'), |
---|
165 | 'mobile' => array('mobile'), |
---|
166 | 'pager' => array('pager'), |
---|
167 | 'fax' => array('facsimileTelephoneNumber'), |
---|
168 | 'telex' => array('telexNumber') |
---|
169 | )), |
---|
170 | 3 => array( |
---|
171 | 'contact.id_contact' => array('dn'), |
---|
172 | 'contact.photo' => array('jpegPhoto'), |
---|
173 | 'contact.prefixes.prefix' => false, |
---|
174 | 'contact.alias' => array('alias'), |
---|
175 | 'contact.given_names' => array('givenName'), |
---|
176 | 'contact.family_names' => array('sn'), |
---|
177 | 'contact.names_ordered' => array('cn'),//,'displayName'), |
---|
178 | 'contact.suffixes.suffix' => false, |
---|
179 | 'contact.birthdate' => false, |
---|
180 | 'contact.sex' => false, |
---|
181 | 'contact.pgp_key' => false, |
---|
182 | 'contact.notes' => false, |
---|
183 | 'contact.mail_forwarding_address' => array('mailForwardingAddress'), |
---|
184 | 'contact.account_type' => array('phpgwAccountType'), |
---|
185 | 'contact.account_status' => array('phpgwAccountStatus'), |
---|
186 | 'contact.account_visible' => array('phpgwAccountVisible'), |
---|
187 | 'contact.object_class' => array('objectClass'), |
---|
188 | 'contact.business_info.title' => array('title'), |
---|
189 | 'contact.business_info.department' => array('ou'), |
---|
190 | 'contact.company.company_name' => array('o'), |
---|
191 | 'contact.company.company_notes' => array('businessCategory'), |
---|
192 | |
---|
193 | 'contact.contact_related.names_ordered' => 'contact.contact_related.typeof_relation.contact_relation_name', |
---|
194 | 'contact.contact_related.typeof_relation.contact_relation_name' => array( |
---|
195 | 'manager' => array('manager'), |
---|
196 | 'secretary' => array('secretary') |
---|
197 | ), |
---|
198 | |
---|
199 | 'contact.address.address1' => 'contact.address.typeof_address.contact_address_type_name', |
---|
200 | 'contact.address.typeof_address.contact_address_type_name' => array( |
---|
201 | 'home' => array('street', 'st', 'postalAddress', 'homePostalAddress'), |
---|
202 | ), |
---|
203 | |
---|
204 | 'contact.address.postal_code' => 'contact.address.typeof_address.contact_address_type_name', |
---|
205 | 'contact.address.typeof_address.contact_address_type_name' => array( |
---|
206 | 'home' => array('PostalCode'), |
---|
207 | ), |
---|
208 | |
---|
209 | 'contact.address.city.city_name' => 'contact.address.typeof_address.contact_address_type_name', |
---|
210 | 'contact.address.typeof_address.contact_address_type_name' => array( |
---|
211 | 'home' => array('l'), |
---|
212 | ), |
---|
213 | |
---|
214 | 'contact.address.city.state.state_name' => 'contact.address.typeof_address.contact_address_type_name', |
---|
215 | 'contact.address.typeof_address.contact_address_type_name' => array( |
---|
216 | 'home' => false, |
---|
217 | ), |
---|
218 | |
---|
219 | 'contact.address.city.country.id_country' => 'contact.address.typeof_address.contact_address_type_name', |
---|
220 | 'contact.address.typeof_address.contact_address_type_name' => array( |
---|
221 | 'home' => array('c') |
---|
222 | ), |
---|
223 | |
---|
224 | 'contact.connection.connection_value' => 'contact.connection.typeof_connection.contact_connection_type_name', |
---|
225 | 'contact.connection.typeof_connection.contact_connection_type_name' => array ( |
---|
226 | 'email' => array('mail'), |
---|
227 | 'phone' => array('telephoneNumber'), |
---|
228 | 'mobile' => array('mobile'), |
---|
229 | 'pager' => array('pager'), |
---|
230 | 'fax' => array('facsimileTelephoneNumber'), |
---|
231 | 'telex' => array('telexNumber') |
---|
232 | )) |
---|
233 | |
---|
234 | ); |
---|
235 | |
---|
236 | ?> |
---|