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