1 | <?php |
---|
2 | /* |
---|
3 | * Created on 20/08/2007 Por Bruno costa |
---|
4 | * |
---|
5 | * Arquivo de configuracao de catalogos externos |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | |
---|
10 | |
---|
11 | $external_srcs = array( |
---|
12 | 1 => array( |
---|
13 | 'name' => 'Catálogo Externo', |
---|
14 | 'host' => 'ldap://localhost', |
---|
15 | 'dn' => 'dc=pr,dc=gov,dc=br', |
---|
16 | 'acc' => '', |
---|
17 | 'pw' => '', |
---|
18 | 'obj' => 'inetOrgPerson', |
---|
19 | 'branch' => strtolower('ou'), |
---|
20 | 'visible' => $data['cc_ldap_query_automatic'] |
---|
21 | ) |
---|
22 | |
---|
23 | ); |
---|
24 | $external_mappings = array( |
---|
25 | 1 => array( |
---|
26 | 'contact.id_contact' => array('dn'), |
---|
27 | 'contact.photo' => array('jpegPhoto'), |
---|
28 | 'contact.prefixes.prefix' => false, |
---|
29 | 'contact.alias' => array('alias'), |
---|
30 | 'contact.given_names' => array('givenName'), |
---|
31 | 'contact.family_names' => array('sn'), |
---|
32 | 'contact.names_ordered' => array('cn'),//,'displayName'), |
---|
33 | 'contact.suffixes.suffix' => false, |
---|
34 | 'contact.birthdate' => false, |
---|
35 | 'contact.sex' => false, |
---|
36 | 'contact.pgp_key' => false, |
---|
37 | 'contact.notes' => false, |
---|
38 | 'contact.mail_forwarding_address' => array('mailForwardingAddress'), |
---|
39 | 'contact.account_type' => array('phpgwAccountType'), |
---|
40 | 'contact.account_status' => array('phpgwAccountStatus'), |
---|
41 | 'contact.account_visible' => array('phpgwAccountVisible'), |
---|
42 | 'contact.object_class' => array('objectClass'), |
---|
43 | 'contact.business_info.title' => array('title'), |
---|
44 | 'contact.business_info.department' => array('ou'), |
---|
45 | 'contact.company.company_name' => array('o'), |
---|
46 | 'contact.company.company_notes' => array('businessCategory'), |
---|
47 | |
---|
48 | 'contact.contact_related.names_ordered' => 'contact.contact_related.typeof_relation.contact_relation_name', |
---|
49 | 'contact.contact_related.typeof_relation.contact_relation_name' => array( |
---|
50 | 'manager' => array('manager'), |
---|
51 | 'secretary' => array('secretary') |
---|
52 | ), |
---|
53 | |
---|
54 | 'contact.address.address1' => 'contact.address.typeof_address.contact_address_type_name', |
---|
55 | 'contact.address.typeof_address.contact_address_type_name' => array( |
---|
56 | 'home' => array('street', 'st', 'postalAddress', 'homePostalAddress'), |
---|
57 | ), |
---|
58 | |
---|
59 | 'contact.address.postal_code' => 'contact.address.typeof_address.contact_address_type_name', |
---|
60 | 'contact.address.typeof_address.contact_address_type_name' => array( |
---|
61 | 'home' => array('PostalCode'), |
---|
62 | ), |
---|
63 | |
---|
64 | 'contact.address.city.city_name' => 'contact.address.typeof_address.contact_address_type_name', |
---|
65 | 'contact.address.typeof_address.contact_address_type_name' => array( |
---|
66 | 'home' => array('l'), |
---|
67 | ), |
---|
68 | |
---|
69 | 'contact.address.city.state.state_name' => 'contact.address.typeof_address.contact_address_type_name', |
---|
70 | 'contact.address.typeof_address.contact_address_type_name' => array( |
---|
71 | 'home' => false, |
---|
72 | ), |
---|
73 | |
---|
74 | 'contact.address.city.country.id_country' => 'contact.address.typeof_address.contact_address_type_name', |
---|
75 | 'contact.address.typeof_address.contact_address_type_name' => array( |
---|
76 | 'home' => array('c') |
---|
77 | ), |
---|
78 | |
---|
79 | 'contact.connection.connection_value' => 'contact.connection.typeof_connection.contact_connection_type_name', |
---|
80 | 'contact.connection.typeof_connection.contact_connection_type_name' => array ( |
---|
81 | 'email' => array('mail'), |
---|
82 | 'phone' => array('telephoneNumber'), |
---|
83 | 'mobile' => array('mobile'), |
---|
84 | 'pager' => array('pager'), |
---|
85 | 'fax' => array('facsimileTelephoneNumber'), |
---|
86 | 'telex' => array('telexNumber') |
---|
87 | )) |
---|
88 | ); |
---|
89 | ?> |
---|