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

Revision 4000, 4.9 KB checked in by emersonfaria, 13 years ago (diff)

Ticket #1746 - Criada autenticacao dos Backends no LDAP e corrigido bug de login alfanumerico

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