Alternc  3.2
Alternc logiel libre pour l'h├ębergement
 All Data Structures Namespaces Files Functions Variables Pages
config.inc.php
Go to the documentation of this file.
1 <?php
2 
3 /***********************************************************************/
4 // Configuration file of password's plugin of Roundcube for AlternC //
5 // //
6 // /!\ WARNING /!\ Do not edit this file, edit the one in //
7 // /etc/alternc/templates/roundcube/plugins/password/ //
8 // and launch alternc.install again. //
9 // //
10 /***********************************************************************/
11 
12 // Password Plugin options
13 // -----------------------
14 // A driver to use for password change. Default: "sql".
15 // See README file for list of supported driver names.
16 $rcmail_config['password_driver'] = 'sql';
17 
18 // Determine whether current password is required to change password.
19 // Default: false.
20 $rcmail_config['password_confirm_current'] = true;
21 
22 // Require the new password to be a certain length.
23 // set to blank to allow passwords of any length
24 $rcmail_config['password_minimum_length'] = 8;
25 
26 // Require the new password to contain a letter and punctuation character
27 // Change to false to remove this check.
28 $rcmail_config['password_require_nonalpha'] = true;
29 
30 // Enables logging of password changes into logs/password
31 $rcmail_config['password_log'] = true;
32 
33 
34 // SQL Driver options
35 // ------------------
36 // PEAR database DSN for performing the query. By default
37 // Roundcube DB settings are used.
38 $rcmail_config['password_db_dsn'] = 'mysql://%%roundcube-login%%:%%roundcube-password%%@%%dbhost%%/%%dbname%%';
39 
40 // The SQL query used to change the password.
41 // The query can contain the following macros that will be expanded as follows:
42 // %p is replaced with the plaintext new password
43 // %c is replaced with the crypt version of the new password, MD5 if available
44 // otherwise DES.
45 // %D is replaced with the dovecotpw-crypted version of the new password
46 // %o is replaced with the password before the change
47 // %n is replaced with the hashed version of the new password
48 // %q is replaced with the hashed password before the change
49 // %h is replaced with the imap host (from the session info)
50 // %u is replaced with the username (from the session info)
51 // %l is replaced with the local part of the username
52 // (in case the username is an email address)
53 // %d is replaced with the domain part of the username
54 // (in case the username is an email address)
55 // Escaping of macros is handled by this module.
56 // Default: "SELECT update_passwd(%c, %u)"
57 $rcmail_config['password_query'] = 'UPDATE address a LEFT JOIN domaines d ON d.id=a.domain_id SET a.password=%c WHERE d.domaine=%d AND address=%l';
58 
59 // By default domains in variables are using unicode.
60 // Enable this option to use punycoded names
61 $rcmail_config['password_idn_ascii'] = false;
62 
63 // Path for dovecotpw (if not in $PATH)
64 // $rcmail_config['password_dovecotpw'] = '/usr/local/sbin/dovecotpw';
65 
66 // Dovecot method (dovecotpw -s 'method')
67 $rcmail_config['password_dovecotpw_method'] = 'CRAM-MD5';
68 
69 // Enables use of password with crypt method prefix in %D, e.g. {MD5}$1$LUiMYWqx$fEkg/ggr/L6Mb2X7be4i1/
70 $rcmail_config['password_dovecotpw_with_method'] = false;
71 
72 // Using a password hash for %n and %q variables.
73 // Determine which hashing algorithm should be used to generate
74 // the hashed new and current password for using them within the
75 // SQL query. Requires PHP's 'hash' extension.
76 $rcmail_config['password_hash_algorithm'] = 'sha1';
77 
78 // You can also decide whether the hash should be provided
79 // as hex string or in base64 encoded format.
80 $rcmail_config['password_hash_base64'] = false;
81 
82 
83 // Poppassd Driver options
84 // -----------------------
85 // The host which changes the password
86 $rcmail_config['password_pop_host'] = 'localhost';
87 
88 // TCP port used for poppassd connections
89 $rcmail_config['password_pop_port'] = 106;
90 
91 
92 // SASL Driver options
93 // -------------------
94 // Additional arguments for the saslpasswd2 call
95 $rcmail_config['password_saslpasswd_args'] = '';
96 
97 
98 // LDAP and LDAP_SIMPLE Driver options
99 // -----------------------------------
100 // LDAP server name to connect to.
101 // You can provide one or several hosts in an array in which case the hosts are tried from left to right.
102 // Exemple: array('ldap1.exemple.com', 'ldap2.exemple.com');
103 // Default: 'localhost'
104 $rcmail_config['password_ldap_host'] = 'localhost';
105 
106 // LDAP server port to connect to
107 // Default: '389'
108 $rcmail_config['password_ldap_port'] = '389';
109 
110 // TLS is started after connecting
111 // Using TLS for password modification is recommanded.
112 // Default: false
113 $rcmail_config['password_ldap_starttls'] = false;
114 
115 // LDAP version
116 // Default: '3'
117 $rcmail_config['password_ldap_version'] = '3';
118 
119 // LDAP base name (root directory)
120 // Exemple: 'dc=exemple,dc=com'
121 $rcmail_config['password_ldap_basedn'] = 'dc=exemple,dc=com';
122 
123 // LDAP connection method
124 // There is two connection method for changing a user's LDAP password.
125 // 'user': use user credential (recommanded, require password_confirm_current=true)
126 // 'admin': use admin credential (this mode require password_ldap_adminDN and password_ldap_adminPW)
127 // Default: 'user'
128 $rcmail_config['password_ldap_method'] = 'user';
129 
130 // LDAP Admin DN
131 // Used only in admin connection mode
132 // Default: null
133 $rcmail_config['password_ldap_adminDN'] = null;
134 
135 // LDAP Admin Password
136 // Used only in admin connection mode
137 // Default: null
138 $rcmail_config['password_ldap_adminPW'] = null;
139 
140 // LDAP user DN mask
141 // The user's DN is mandatory and as we only have his login,
142 // we need to re-create his DN using a mask
143 // '%login' will be replaced by the current roundcube user's login
144 // '%name' will be replaced by the current roundcube user's name part
145 // '%domain' will be replaced by the current roundcube user's domain part
146 // '%dc' will be replaced by domain name hierarchal string e.g. "dc=test,dc=domain,dc=com"
147 // Exemple: 'uid=%login,ou=people,dc=exemple,dc=com'
148 $rcmail_config['password_ldap_userDN_mask'] = 'uid=%login,ou=people,dc=exemple,dc=com';
149 
150 // LDAP search DN
151 // The DN roundcube should bind with to find out user's DN
152 // based on his login. Note that you should comment out the default
153 // password_ldap_userDN_mask setting for this to take effect.
154 // Use this if you cannot specify a general template for user DN with
155 // password_ldap_userDN_mask. You need to perform a search based on
156 // users login to find his DN instead. A common reason might be that
157 // your users are placed under different ou's like engineering or
158 // sales which cannot be derived from their login only.
159 $rcmail_config['password_ldap_searchDN'] = 'cn=roundcube,ou=services,dc=example,dc=com';
160 
161 // LDAP search password
162 // If password_ldap_searchDN is set, the password to use for
163 // binding to search for user's DN. Note that you should comment out the default
164 // password_ldap_userDN_mask setting for this to take effect.
165 // Warning: Be sure to set approperiate permissions on this file so this password
166 // is only accesible to roundcube and don't forget to restrict roundcube's access to
167 // your directory as much as possible using ACLs. Should this password be compromised
168 // you want to minimize the damage.
169 $rcmail_config['password_ldap_searchPW'] = 'secret';
170 
171 // LDAP search base
172 // If password_ldap_searchDN is set, the base to search in using the filter below.
173 // Note that you should comment out the default password_ldap_userDN_mask setting
174 // for this to take effect.
175 $rcmail_config['password_ldap_search_base'] = 'ou=people,dc=example,dc=com';
176 
177 // LDAP search filter
178 // If password_ldap_searchDN is set, the filter to use when
179 // searching for user's DN. Note that you should comment out the default
180 // password_ldap_userDN_mask setting for this to take effect.
181 // '%login' will be replaced by the current roundcube user's login
182 // '%name' will be replaced by the current roundcube user's name part
183 // '%domain' will be replaced by the current roundcube user's domain part
184 // '%dc' will be replaced by domain name hierarchal string e.g. "dc=test,dc=domain,dc=com"
185 // Example: '(uid=%login)'
186 // Example: '(&(objectClass=posixAccount)(uid=%login))'
187 $rcmail_config['password_ldap_search_filter'] = '(uid=%login)';
188 
189 // LDAP password hash type
190 // Standard LDAP encryption type which must be one of: crypt,
191 // ext_des, md5crypt, blowfish, md5, sha, smd5, ssha, or clear.
192 // Please note that most encodage types require external libraries
193 // to be included in your PHP installation, see function hashPassword in drivers/ldap.php for more info.
194 // Default: 'crypt'
195 $rcmail_config['password_ldap_encodage'] = 'crypt';
196 
197 // LDAP password attribute
198 // Name of the ldap's attribute used for storing user password
199 // Default: 'userPassword'
200 $rcmail_config['password_ldap_pwattr'] = 'userPassword';
201 
202 // LDAP password force replace
203 // Force LDAP replace in cases where ACL allows only replace not read
204 // See http://pear.php.net/package/Net_LDAP2/docs/latest/Net_LDAP2/Net_LDAP2_Entry.html#methodreplace
205 // Default: true
206 $rcmail_config['password_ldap_force_replace'] = true;
207 
208 // LDAP Password Last Change Date
209 // Some places use an attribute to store the date of the last password change
210 // The date is meassured in "days since epoch" (an integer value)
211 // Whenever the password is changed, the attribute will be updated if set (e.g. shadowLastChange)
212 $rcmail_config['password_ldap_lchattr'] = '';
213 
214 // LDAP Samba password attribute, e.g. sambaNTPassword
215 // Name of the LDAP's Samba attribute used for storing user password
216 $rcmail_config['password_ldap_samba_pwattr'] = '';
217 
218 // LDAP Samba Password Last Change Date attribute, e.g. sambaPwdLastSet
219 // Some places use an attribute to store the date of the last password change
220 // The date is meassured in "seconds since epoch" (an integer value)
221 // Whenever the password is changed, the attribute will be updated if set
222 $rcmail_config['password_ldap_samba_lchattr'] = '';
223 
224 
225 // DirectAdmin Driver options
226 // --------------------------
227 // The host which changes the password
228 // Use 'ssl://host' instead of 'tcp://host' when running DirectAdmin over SSL.
229 // The host can contain the following macros that will be expanded as follows:
230 // %h is replaced with the imap host (from the session info)
231 // %d is replaced with the domain part of the username (if the username is an email)
232 $rcmail_config['password_directadmin_host'] = 'tcp://localhost';
233 
234 // TCP port used for DirectAdmin connections
235 $rcmail_config['password_directadmin_port'] = 2222;
236 
237 
238 // vpopmaild Driver options
239 // -----------------------
240 // The host which changes the password
241 $rcmail_config['password_vpopmaild_host'] = 'localhost';
242 
243 // TCP port used for vpopmaild connections
244 $rcmail_config['password_vpopmaild_port'] = 89;
245 
246 
247 // cPanel Driver options
248 // --------------------------
249 // The cPanel Host name
250 $rcmail_config['password_cpanel_host'] = 'host.domain.com';
251 
252 // The cPanel admin username
253 $rcmail_config['password_cpanel_username'] = 'username';
254 
255 // The cPanel admin password
256 $rcmail_config['password_cpanel_password'] = 'password';
257 
258 // The cPanel port to use
259 $rcmail_config['password_cpanel_port'] = 2082;
260 
261 // Using ssl for cPanel connections?
262 $rcmail_config['password_cpanel_ssl'] = true;
263 
264 // The cPanel theme in use
265 $rcmail_config['password_cpanel_theme'] = 'x';
266 
267 
268 // XIMSS (Communigate server) Driver options
269 // -----------------------------------------
270 // Host name of the Communigate server
271 $rcmail_config['password_ximss_host'] = 'mail.example.com';
272 
273 // XIMSS port on Communigate server
274 $rcmail_config['password_ximss_port'] = 11024;
275 
276 
277 // chpasswd Driver options
278 // ---------------------
279 // Command to use
280 $rcmail_config['password_chpasswd_cmd'] = 'sudo /usr/sbin/chpasswd 2> /dev/null';
281 
282 
283 // XMail Driver options
284 // ---------------------
285 $rcmail_config['xmail_host'] = 'localhost';
286 $rcmail_config['xmail_user'] = 'YourXmailControlUser';
287 $rcmail_config['xmail_pass'] = 'YourXmailControlPass';
288 $rcmail_config['xmail_port'] = 6017;
289 
290 
291 // hMail Driver options
292 // -----------------------
293 // Remote hMailServer configuration
294 // true: HMailserver is on a remote box (php.ini: com.allow_dcom = true)
295 // false: Hmailserver is on same box as PHP
296 $rcmail_config['hmailserver_remote_dcom'] = false;
297 // Windows credentials
298 $rcmail_config['hmailserver_server'] = array(
299  'Server' => 'localhost', // hostname or ip address
300  'Username' => 'administrator', // windows username
301  'Password' => 'password' // windows user password
302 );
303 
304 
305 // Virtualmin Driver options
306 // -------------------------
307 // Username format:
308 // 0: username@domain
309 // 1: username%domain
310 // 2: username.domain
311 // 3: domain.username
312 // 4: username-domain
313 // 5: domain-username
314 // 6: username_domain
315 // 7: domain_username
316 $rcmail_config['password_virtualmin_format'] = 0;
317 
318 ?>