source: companies/serpro/contactcenter/setup/external_catalogs.inc.php @ 903

Revision 903, 8.9 KB checked in by niltonneto, 15 years ago (diff)

Importacao inicial do Expresso do Serpro

Line 
1<?php
2/*
3 * Created on 20/08/2007 Por Bruno costa
4 *
5 *      Arquivo de configuraᅵᅵo de catï¿œlogos externos
6 *
7 */
8
9/*
10 * This file is comprised of two arrays describing the external catalogs ($external_srcs) and their attribute mappings
11 * ($external_mappings). The mapping between an external catalog and his attribute mappings are made with the array indices, i. e.
12 * a catalog at external_srcs with indice = 1 use the mapping with indice = 1 at external_mapping.
13 *
14 * external_srcs' format:
15 *
16 *      $external_srcs  =       array(
17 *                                      1       =>      array(
18 *                                              'name'          =>      'Catalog's name',
19 *                                              'host'          =>      'catalog's hostname',
20 *                                              'dn'            =>      'catalog's base dn',
21 *                                              'acc'           =>      'catalog's bind dn',
22 *                                              'pw'            =>      'bind dn's password',
23 *                                              'obj'           =>      'objectClass that will be used in searches',
24 *                                              'branch'        =>      strtolower('attribute used as branches in the catalog tree'),
25                                                'quicksearch    =>      'ExpressoMail's search',
26                                                'max_results'   =>      'Ldap's search limit',
27 *                                      ),
28 *                                      2       =>      array(
29 *                                              ...
30 *                                      ),
31 *      );
32 *
33 * external_mappings' format:
34 *
35 *      $external_mappings      =       array(
36 *                                                      1       =>      array(
37 *                                                              'contact.id_contact'                            =>      array('dn'),
38 *                                                              'contact.photo'                                         =>      array('jpegPhoto'),
39 *                                                              'contact.prefixes.prefix'                       =>      false, //used when you don't have an attribute or don't want to use one
40 *                                                              ...
41 *                                                      ),
42 *                                                      2       =>      array(
43 *                                                              ...
44 *                                                      ),
45 *              );
46 *
47 */
48 
49 $external_srcs = array(
50/*                              1 => array(
51                                        'name'          => 'Exchange Fazenda',
52                                        'host'          => '10.30.2.21',
53                                        'dn'            => 'dc=mf,dc=correio',
54                                        'acc'           => 'cn=Carteiro,ou=Serpro,dc=mf,dc=correio',
55                                        'pw'            => 'bfr2000s$',
56                                        'obj'           => 'person',
57                                        'branch'        => '',
58                                        'quicksearch'   => true,
59                                        'max_results'   => 50,
60
61                                ),*/
62                                1 => array(
63                                        'name'          => 'Grupos Notes',
64                                        'host'          => '10.30.2.25',
65                                        'dn'            => 'ou=gruposNotes,dc=correiolivre,dc=serpro,dc=gov,dc=br',
66                                        'acc'           => 'cn=admin,dc=correiolivre,dc=serpro,dc=gov,dc=br',
67                                        'pw'            => 'correio',
68                                        'obj'           => 'inetOrgPerson',
69                                        'branch'        => '',
70                                        'quicksearch'   => false,
71                                        'max_result'    => 0,
72                                )
73                        );
74
75$external_mappings = array(
76/*                              1 => array(
77                                        'contact.id_contact'               => array('dn'),
78                                        'contact.photo'                    => array('jpegPhoto'),
79                                        'contact.prefixes.prefix'          => false,
80                                        'contact.alias'                    => array('alias'),
81                                        'contact.given_names'              => array('givenName'),
82                                        'contact.family_names'             => array('sn'),
83                                        'contact.names_ordered'            => array('cn'),//,'displayName'),
84                                        'contact.suffixes.suffix'          => false,
85                                        'contact.birthdate'                => false,
86                                        'contact.sex'                      => false,
87                                        'contact.pgp_key'                  => false,
88                                        'contact.notes'                    => false,
89                                        'contact.mail_forwarding_address'  => array('mailForwardingAddress'),
90                                        'contact.account_type'             => false,
91                                        'contact.account_status'           => false,
92                                        'contact.account_visible'          => false,
93                                        'contact.object_class'             => array('objectClass'),
94                                        'contact.business_info.title'      => array('title'),
95                                        'contact.business_info.department' => array('ou'), // Setor do empregado...
96                                        'contact.business_info.empNumber'  => array('employeeNumber'), // Matricula do empregado
97                                        'contact.business_info.celPhone'   => array('mobile'), // Celular empresarial do empregado
98                                        'contact.company.company_name'     => array('o'),
99                                        'contact.company.company_notes'    => array('businessCategory'),
100
101                                        'contact.contact_related.names_ordered' => 'contact.contact_related.typeof_relation.contact_relation_name',
102                                        'contact.contact_related.typeof_relation.contact_relation_name' =>  array(
103                                                'manager'   => array('manager'),
104                                                'secretary' => array('secretary')
105                                        ),
106
107                                        'contact.address.address1'         => 'contact.address.typeof_address.contact_address_type_name',
108                                        'contact.address.typeof_address.contact_address_type_name' => array(
109                                                'home' => array('street', 'st', 'postalAddress', 'homePostalAddress'),
110                                        ),
111
112                                        'contact.address.postal_code'      => 'contact.address.typeof_address.contact_address_type_name',
113                                        'contact.address.typeof_address.contact_address_type_name' => array(
114                                                'home' => array('PostalCode'),
115                                        ),
116
117                                        'contact.address.city.city_name'   => 'contact.address.typeof_address.contact_address_type_name',
118                                        'contact.address.typeof_address.contact_address_type_name' => array(
119                                                'home' => array('l'),
120                                        ),
121
122                                        'contact.address.city.state.state_name'       => 'contact.address.typeof_address.contact_address_type_name',
123                                        'contact.address.typeof_address.contact_address_type_name' => array(
124                                                'home' => false,
125                                        ),
126
127                                        'contact.address.city.country.id_country'     => 'contact.address.typeof_address.contact_address_type_name',
128                                        'contact.address.typeof_address.contact_address_type_name' => array(
129                                                'home' => array('c')
130                                        ),
131
132                                        'contact.connection.connection_value'         => 'contact.connection.typeof_connection.contact_connection_type_name',
133                                        'contact.connection.typeof_connection.contact_connection_type_name' => array (
134                                                'email'  => array('mail'),
135                                                'phone'  => array('telephoneNumber'),
136                                        //      'mobile' => array('mobile'),
137                                                'pager'  => array('pager'),
138                                                'fax'    => array('facsimileTelephoneNumber'),
139                                                'telex'  => array('telexNumber')
140                                        ),
141                                ),*/
142                                1 => array(
143                                        'contact.id_contact'               => array('dn'),
144                                        'contact.photo'                    => array('jpegPhoto'),
145                                        'contact.prefixes.prefix'          => false,
146                                        'contact.alias'                    => array('alias'),
147                                        'contact.given_names'              => array('givenName'),
148                                        'contact.family_names'             => array('sn'),
149                                        'contact.names_ordered'            => array('cn'),//,'displayName'),
150                                        'contact.suffixes.suffix'          => false,
151                                        'contact.birthdate'                => false,
152                                        'contact.sex'                      => false,
153                                        'contact.pgp_key'                  => false,
154                                        'contact.notes'                    => false,
155                                        'contact.mail_forwarding_address'  => array('mailForwardingAddress'),
156                                        'contact.account_type'             => false,
157                                        'contact.account_status'           => false,
158                                        'contact.account_visible'          => false,
159                                        'contact.object_class'             => array('objectClass'),
160                                        'contact.business_info.title'      => array('title'),
161                                        'contact.business_info.department' => array('ou'), // Setor do empregado...
162                                        'contact.business_info.empNumber'  => array('employeeNumber'), // Matricula do empregado
163                                        'contact.business_info.celPhone'   => array('mobile'), // Celular empresarial do empregado
164                                        'contact.company.company_name'     => array('o'),
165                                        'contact.company.company_notes'    => array('businessCategory'),
166
167                                        'contact.contact_related.names_ordered' => 'contact.contact_related.typeof_relation.contact_relation_name',
168                                        'contact.contact_related.typeof_relation.contact_relation_name' =>  array(
169                                                'manager'   => array('manager'),
170                                                'secretary' => array('secretary')
171                                        ),
172
173                                        'contact.address.address1'         => 'contact.address.typeof_address.contact_address_type_name',
174                                        'contact.address.typeof_address.contact_address_type_name' => array(
175                                                'home' => array('street', 'st', 'postalAddress', 'homePostalAddress'),
176                                        ),
177
178                                        'contact.address.postal_code'      => 'contact.address.typeof_address.contact_address_type_name',
179                                        'contact.address.typeof_address.contact_address_type_name' => array(
180                                                'home' => array('PostalCode'),
181                                        ),
182
183                                        'contact.address.city.city_name'   => 'contact.address.typeof_address.contact_address_type_name',
184                                        'contact.address.typeof_address.contact_address_type_name' => array(
185                                                'home' => array('l'),
186                                        ),
187
188                                        'contact.address.city.state.state_name'       => 'contact.address.typeof_address.contact_address_type_name',
189                                        'contact.address.typeof_address.contact_address_type_name' => array(
190                                                'home' => false,
191                                        ),
192
193                                        'contact.address.city.country.id_country'     => 'contact.address.typeof_address.contact_address_type_name',
194                                        'contact.address.typeof_address.contact_address_type_name' => array(
195                                                'home' => array('c')
196                                        ),
197
198                                        'contact.connection.connection_value'         => 'contact.connection.typeof_connection.contact_connection_type_name',
199                                        'contact.connection.typeof_connection.contact_connection_type_name' => array (
200                                                'email'  => array('mail'),
201                                                'phone'  => array('telephoneNumber'),
202                                        //      'mobile' => array('mobile'),
203                                                'pager'  => array('pager'),
204                                        //      'fax'    => array('facsimileTelephoneNumber'),
205                                                'telex'  => array('telexNumber')
206                                        ),
207                                       
208                                   
209                                ),
210                );
211
212?>
Note: See TracBrowser for help on using the repository browser.