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';
9 // Determine whether current password is required to change password.
11 $rcmail_config['password_confirm_current'] = true;
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;
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;
21 // Enables logging of password changes into logs/password
22 $rcmail_config['password_log'] = false;
27 // PEAR database DSN for performing the query. By default
28 // Roundcube DB settings are used.
29 $rcmail_config['password_db_dsn'] = '';
31 // The SQL query used to change the password.
32 // The query can contain the following macros that will be expanded as follows:
33 // %p is replaced with the plaintext new password
34 // %c is replaced with the crypt version of the new password, MD5 if available
36 // %D is replaced with the dovecotpw-crypted version of the new password
37 // %o is replaced with the password before the change
38 // %n is replaced with the hashed version of the new password
39 // %q is replaced with the hashed password before the change
40 // %h is replaced with the imap host (from the session info)
41 // %u is replaced with the username (from the session info)
42 // %l is replaced with the local part of the username
43 // (in case the username is an email address)
44 // %d is replaced with the domain part of the username
45 // (in case the username is an email address)
46 // Escaping of macros is handled by this module.
47 // Default: "SELECT update_passwd(%c, %u)"
48 $rcmail_config['password_query'] = 'SELECT update_passwd(%c, %u)';
50 // Path for dovecotpw (if not in $PATH)
51 // $rcmail_config['password_dovecotpw'] = '/usr/local/sbin/dovecotpw';
53 // Dovecot method (dovecotpw -s 'method')
54 $rcmail_config['password_dovecotpw_method'] = 'CRAM-MD5';
56 // Enables use of password with crypt method prefix in %D, e.g. {MD5}$1$LUiMYWqx$fEkg/ggr/L6Mb2X7be4i1/
57 $rcmail_config['password_dovecotpw_with_method'] = false;
59 // Using a password hash for %n and %q variables.
60 // Determine which hashing algorithm should be used to generate
61 // the hashed new and current password for using them within the
62 // SQL query. Requires PHP's 'hash' extension.
63 $rcmail_config['password_hash_algorithm'] = 'sha1';
65 // You can also decide whether the hash should be provided
66 // as hex string or in base64 encoded format.
67 $rcmail_config['password_hash_base64'] = false;
70 // Poppassd Driver options
71 // -----------------------
72 // The host which changes the password
73 $rcmail_config['password_pop_host'] = 'localhost';
75 // TCP port used for poppassd connections
76 $rcmail_config['password_pop_port'] = 106;
79 // SASL Driver options
80 // -------------------
81 // Additional arguments for the saslpasswd2 call
82 $rcmail_config['password_saslpasswd_args'] = '';
85 // LDAP and LDAP_SIMPLE Driver options
86 // -----------------------------------
87 // LDAP server name to connect to.
88 // You can provide one or several hosts in an array in which case the hosts are tried from left to right.
89 // Exemple: array('ldap1.exemple.com', 'ldap2.exemple.com');
90 // Default: 'localhost'
91 $rcmail_config['password_ldap_host'] = 'localhost';
93 // LDAP server port to connect to
95 $rcmail_config['password_ldap_port'] = '389';
97 // TLS is started after connecting
98 // Using TLS for password modification is recommanded.
100 $rcmail_config['password_ldap_starttls'] = false;
104 $rcmail_config['password_ldap_version'] = '3';
106 // LDAP base name (root directory)
107 // Exemple: 'dc=exemple,dc=com'
108 $rcmail_config['password_ldap_basedn'] = 'dc=exemple,dc=com';
110 // LDAP connection method
111 // There is two connection method for changing a user's LDAP password.
112 // 'user': use user credential (recommanded, require password_confirm_current=true)
113 // 'admin': use admin credential (this mode require password_ldap_adminDN and password_ldap_adminPW)
115 $rcmail_config['password_ldap_method'] = 'user';
118 // Used only in admin connection mode
120 $rcmail_config['password_ldap_adminDN'] = null;
122 // LDAP Admin Password
123 // Used only in admin connection mode
125 $rcmail_config['password_ldap_adminPW'] = null;
128 // The user's DN is mandatory and as we only have his login,
129 // we need to re-create his DN using a mask
130 // '%login' will be replaced by the current roundcube user's login
131 // '%name' will be replaced by the current roundcube user's name part
132 // '%domain' will be replaced by the current roundcube user's domain part
133 // '%dc' will be replaced by domain name hierarchal string e.g. "dc=test,dc=domain,dc=com"
134 // Exemple: 'uid=%login,ou=people,dc=exemple,dc=com'
135 $rcmail_config['password_ldap_userDN_mask'] = 'uid=%login,ou=people,dc=exemple,dc=com';
138 // The DN roundcube should bind with to find out user's DN
139 // based on his login. Note that you should comment out the default
140 // password_ldap_userDN_mask setting for this to take effect.
141 // Use this if you cannot specify a general template for user DN with
142 // password_ldap_userDN_mask. You need to perform a search based on
143 // users login to find his DN instead. A common reason might be that
144 // your users are placed under different ou's like engineering or
145 // sales which cannot be derived from their login only.
146 $rcmail_config['password_ldap_searchDN'] = 'cn=roundcube,ou=services,dc=example,dc=com';
148 // LDAP search password
149 // If password_ldap_searchDN is set, the password to use for
150 // binding to search for user's DN. Note that you should comment out the default
151 // password_ldap_userDN_mask setting for this to take effect.
152 // Warning: Be sure to set approperiate permissions on this file so this password
153 // is only accesible to roundcube and don't forget to restrict roundcube's access to
154 // your directory as much as possible using ACLs. Should this password be compromised
155 // you want to minimize the damage.
156 $rcmail_config['password_ldap_searchPW'] = 'secret';
159 // If password_ldap_searchDN is set, the base to search in using the filter below.
160 // Note that you should comment out the default password_ldap_userDN_mask setting
161 // for this to take effect.
162 $rcmail_config['password_ldap_search_base'] = 'ou=people,dc=example,dc=com';
164 // LDAP search filter
165 // If password_ldap_searchDN is set, the filter to use when
166 // searching for user's DN. Note that you should comment out the default
167 // password_ldap_userDN_mask setting for this to take effect.
168 // '%login' will be replaced by the current roundcube user's login
169 // '%name' will be replaced by the current roundcube user's name part
170 // '%domain' will be replaced by the current roundcube user's domain part
171 // '%dc' will be replaced by domain name hierarchal string e.g. "dc=test,dc=domain,dc=com"
172 // Example: '(uid=%login)'
173 // Example: '(&(objectClass=posixAccount)(uid=%login))'
174 $rcmail_config['password_ldap_search_filter'] = '(uid=%login)';
176 // LDAP password hash type
177 // Standard LDAP encryption type which must be one of: crypt,
178 // ext_des, md5crypt, blowfish, md5, sha, smd5, ssha, or clear.
179 // Please note that most encodage types require external libraries
180 // to be included in your PHP installation, see function hashPassword in drivers/ldap.php for more info.
182 $rcmail_config['password_ldap_encodage'] = 'crypt';
184 // LDAP password attribute
185 // Name of the ldap's attribute used for storing user password
186 // Default: 'userPassword'
187 $rcmail_config['password_ldap_pwattr'] = 'userPassword';
189 // LDAP password force replace
190 // Force LDAP replace in cases where ACL allows only replace not read
191 // See http://pear.php.net/package/Net_LDAP2/docs/latest/Net_LDAP2/Net_LDAP2_Entry.html#methodreplace
193 $rcmail_config['password_ldap_force_replace'] = true;
195 // LDAP Password Last Change Date
196 // Some places use an attribute to store the date of the last password change
197 // The date is meassured in "days since epoch" (an integer value)
198 // Whenever the password is changed, the attribute will be updated if set (e.g. shadowLastChange)
199 $rcmail_config['password_ldap_lchattr'] = '';
201 // LDAP Samba password attribute, e.g. sambaNTPassword
202 // Name of the LDAP's Samba attribute used for storing user password
203 $rcmail_config['password_ldap_samba_pwattr'] = '';
205 // LDAP Samba Password Last Change Date attribute, e.g. sambaPwdLastSet
206 // Some places use an attribute to store the date of the last password change
207 // The date is meassured in "seconds since epoch" (an integer value)
208 // Whenever the password is changed, the attribute will be updated if set
209 $rcmail_config['password_ldap_samba_lchattr'] = '';
212 // DirectAdmin Driver options
213 // --------------------------
214 // The host which changes the password
215 // Use 'ssl://host' instead of 'tcp://host' when running DirectAdmin over SSL.
216 // The host can contain the following macros that will be expanded as follows:
217 // %h is replaced with the imap host (from the session info)
218 // %d is replaced with the domain part of the username (if the username is an email)
219 $rcmail_config['password_directadmin_host'] = 'tcp://localhost';
221 // TCP port used for DirectAdmin connections
222 $rcmail_config['password_directadmin_port'] = 2222;
225 // vpopmaild Driver options
226 // -----------------------
227 // The host which changes the password
228 $rcmail_config['password_vpopmaild_host'] = 'localhost';
230 // TCP port used for vpopmaild connections
231 $rcmail_config['password_vpopmaild_port'] = 89;
234 // cPanel Driver options
235 // --------------------------
236 // The cPanel Host name
237 $rcmail_config['password_cpanel_host'] = 'host.domain.com';
239 // The cPanel admin username
240 $rcmail_config['password_cpanel_username'] = 'username';
242 // The cPanel admin password
243 $rcmail_config['password_cpanel_password'] = 'password';
245 // The cPanel port to use
246 $rcmail_config['password_cpanel_port'] = 2082;
248 // Using ssl for cPanel connections?
249 $rcmail_config['password_cpanel_ssl'] = true;
251 // The cPanel theme in use
252 $rcmail_config['password_cpanel_theme'] = 'x';
255 // XIMSS (Communigate server) Driver options
256 // -----------------------------------------
257 // Host name of the Communigate server
258 $rcmail_config['password_ximss_host'] = 'mail.example.com';
260 // XIMSS port on Communigate server
261 $rcmail_config['password_ximss_port'] = 11024;
264 // chpasswd Driver options
265 // ---------------------
267 $rcmail_config['password_chpasswd_cmd'] = 'sudo /usr/sbin/chpasswd 2> /dev/null';
270 // XMail Driver options
271 // ---------------------
272 $rcmail_config['xmail_host'] = 'localhost';
273 $rcmail_config['xmail_user'] = 'YourXmailControlUser';
274 $rcmail_config['xmail_pass'] = 'YourXmailControlPass';
275 $rcmail_config['xmail_port'] = 6017;
278 // hMail Driver options
279 // -----------------------
280 // Remote hMailServer configuration
281 // true: HMailserver is on a remote box (php.ini: com.allow_dcom = true)
282 // false: Hmailserver is on same box as PHP
283 $rcmail_config['hmailserver_remote_dcom'] = false;
284 // Windows credentials
285 $rcmail_config['hmailserver_server'] = array(
286 'Server' => 'localhost', // hostname or ip address
287 'Username' => 'administrator', // windows username
288 'Password' => 'password' // windows user password
292 // Virtualmin Driver options
293 // -------------------------
295 // 0: username@domain
296 // 1: username%domain
297 // 2: username.domain
298 // 3: domain.username
299 // 4: username-domain
300 // 5: domain-username
301 // 6: username_domain
302 // 7: domain_username
303 $rcmail_config['password_virtualmin_format'] = 0;