source: contrib/z-push/config.php @ 4219

Revision 4219, 5.3 KB checked in by emersonfaria, 13 years ago (diff)

Ticket #1829 - Criado trace detalhado filtrado por usuario e backend

  • Property svn:executable set to *
Line 
1<?php
2/***********************************************
3* File      :   config.php
4* Project   :   Z-Push
5* Descr     :   Main configuration file
6*
7* Created   :   01.10.2007
8*
9* ᅵ Zarafa Deutschland GmbH, www.zarafaserver.de
10* This file is distributed under GPL v2.
11* Consult LICENSE file for details
12************************************************/
13
14    // Defines the default time zone
15    if (function_exists("date_default_timezone_set")){
16        date_default_timezone_set("America/Sao_Paulo");
17    }
18
19    // Defines the base path on the server, terminated by a slash
20    define('BASE_PATH', dirname($_SERVER['SCRIPT_FILENAME']) . "/");
21
22    // Define the include paths
23    ini_set('include_path',
24                        BASE_PATH. "include/" . PATH_SEPARATOR .
25                        BASE_PATH. PATH_SEPARATOR .
26                        ini_get('include_path') . PATH_SEPARATOR .
27                        "/usr/share/php/" . PATH_SEPARATOR .
28                        "/usr/share/php5/" . PATH_SEPARATOR .
29                        "/usr/share/pear/");
30
31    define('STATE_DIR', 'state');
32
33    // Try to set unlimited timeout
34    define('SCRIPT_TIMEOUT', 0);
35
36    //Max size of attachments to display inline. Default is 1MB
37    define('MAX_EMBEDDED_SIZE', 1048576);
38
39    // Device Provisioning
40    define('PROVISIONING', true);
41   
42    // This option allows the 'loose enforcement' of the provisioning policies for older
43    // devices which don't support provisioning (like WM 5 and HTC Android Mail) - dw2412 contribution
44    // false (default) - Enforce provisioning for all devices
45    // true - allow older devices, but enforce policies on devices which support it 
46    define('LOOSE_PROVISIONING', true);
47   
48    // The data providers that we are using (see configuration below)
49        //$BACKEND_PROVIDER = "BackendIMAP";
50    //$BACKEND_PROVIDER = "BackendCalendarExpresso";
51    //$BACKEND_PROVIDER = "BackendContactsExpresso";
52    //$BACKEND_PROVIDER = "BackendVCDir";
53    //$BACKEND_PROVIDER = "BackendRSS";
54    $BACKEND_PROVIDER = "BackendProxy";
55    $BACKEND_EMAIL = "BackendIMAP";
56    $BACKEND_CONTACTS = "BackendContactsExpresso";
57    $BACKEND_CALENDAR = "BackendCalendarExpresso";
58
59    // ************************
60    //  BackendICS settings
61    // ************************
62
63    // Defines the server to which we want to connect
64    define('MAPI_SERVER', 'file:///var/run/zarafa');
65
66
67    // ************************
68    //  BackendIMAP settings
69    // ************************
70
71    // Defines the server to which we want to connect
72    // recommended to use local servers only
73    define('IMAP_SERVER', '10.200.112.132');
74    // connecting to default port (143)
75    define('IMAP_PORT', 143);
76    // best cross-platform compatibility (see http://php.net/imap_open for options)
77    define('IMAP_OPTIONS', '/notls/norsh');
78    // overwrite the "from" header if it isn't set when sending emails
79    // options: 'username'    - the username will be set (usefull if your login is equal to your emailaddress)
80    //        'domain'    - the value of the "domain" field is used
81    //        '@mydomain.com' - the username is used and the given string will be appended
82    define('IMAP_DEFAULTFROM', 'domain');
83    // copy outgoing mail to this folder. If not set z-push will try the default folders
84    define('IMAP_SENTFOLDER', 'INBOX/Sent');
85
86
87    // ************************
88    //  BackendMaildir settings
89    // ************************
90    define('MAILDIR_BASE', '/tmp');
91    define('MAILDIR_SUBDIR', 'Maildir');
92
93    // **********************
94    //  BackendVCDir settings
95    // **********************
96    define('VCARDDIR_DIR', '/var/www/vcf');
97
98    // **********************
99    //  TRACE settings
100    //  When enabled it creates a file named trace-<USER-ID>.txt during sincronization
101    // **********************
102    // A string with User_Login that you want to trace or a boolean FALSE if you don't want to trace.   
103    define('TRACE_UID', '86928023953');
104    // TRACE_TYPE can be 'ALL', 'IMAP', 'CALENDAR' or 'CONTACTS'
105    define('TRACE_TYPE', 'IMAP');
106   
107    // ****************************************************
108    //  LDAP Authentication settings
109    // ****************************************************   
110    // Set USER and PASSWORD if you are not using anonymous bind
111    // Must have read access to DN, UID and UIDNUMBER of all users
112        define("ANONYMOUS_BIND", false);
113        define("LDAP_BIND_USER", "cn=admin,ou=expressolivre,ou=corp,dc=serpro,dc=gov,dc=br");
114        define("LDAP_BIND_PASSWORD", "correio");
115   
116        define("LDAP_HOST", "ldap://10.200.112.132/"); // Address of your LDAP server
117        define("LDAP_PORT", "389"); // Port of your LDAP server
118
119        // Search base & filter
120        define("LDAP_SEARCH_BASE", "dc=serpro,dc=gov,dc=br"); // Base path to search the filter. Example: dc=company,dc=com
121        define("LDAP_SEARCH_FILTER", "uid=SEARCHVALUE"); // The filter is the user login attribute. You can change only the "uid" by other attribute. The SEARCHVALUE string is replaced by the user login inside the backends.
122
123        // LDAP field mapping.
124        global $ldap_field_map;
125        $ldap_field_map = array(
126                                                DN                                              => 'dn', // Change 'dn' only if you use other attribute name in your LDAP.
127                            UID                                         => 'uid', // Change 'uid' only if you use other attribute name in your LDAP.
128                        UIDNUMBER                               => 'uidnumber', // Change 'uidnumber' only if you use other attribute name in your LDAP.
129                     );
130?>
Note: See TracBrowser for help on using the repository browser.