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;
24 // PEAR database DSN for performing the query. By default
25 // Roundcube DB settings are used.
26 $rcmail_config['password_db_dsn'] = '';
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
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)';
47 // Path for dovecotpw (if not in $PATH)
48 // $rcmail_config['password_dovecotpw'] = '/usr/local/sbin/dovecotpw';
50 // Dovecot method (dovecotpw -s 'method')
51 $rcmail_config['password_dovecotpw_method'] = 'CRAM-MD5';
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;
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';
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;
67 // Poppassd Driver options
68 // -----------------------
69 // The host which changes the password
70 $rcmail_config['password_pop_host'] = 'localhost';
72 // TCP port used for poppassd connections
73 $rcmail_config['password_pop_port'] = 106;
76 // SASL Driver options
77 // -------------------
78 // Additional arguments for the saslpasswd2 call
79 $rcmail_config['password_saslpasswd_args'] = '';
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';
90 // LDAP server port to connect to
92 $rcmail_config['password_ldap_port'] = '389';
94 // TLS is started after connecting
95 // Using TLS for password modification is recommanded.
97 $rcmail_config['password_ldap_starttls'] = false;
101 $rcmail_config['password_ldap_version'] = '3';
103 // LDAP base name (root directory)
104 // Exemple: 'dc=exemple,dc=com'
105 $rcmail_config['password_ldap_basedn'] = 'dc=exemple,dc=com';
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)
112 $rcmail_config['password_ldap_method'] = 'user';
115 // Used only in admin connection mode
117 $rcmail_config['password_ldap_adminDN'] = null;
119 // LDAP Admin Password
120 // Used only in admin connection mode
122 $rcmail_config['password_ldap_adminPW'] = null;
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';
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';
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';
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';
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)';
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.
179 $rcmail_config['password_ldap_encodage'] = 'crypt';
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';
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
190 $rcmail_config['password_ldap_force_replace'] = true;
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'] = '';
198 // Also try to update Samba password attributes: sambaNTPassword and sambaPwdLastSet
199 $rcmail_config['password_ldap_samba'] = false;
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';
208 // TCP port used for DirectAdmin connections
209 $rcmail_config['password_directadmin_port'] = 2222;
212 // vpopmaild Driver options
213 // -----------------------
214 // The host which changes the password
215 $rcmail_config['password_vpopmaild_host'] = 'localhost';
217 // TCP port used for vpopmaild connections
218 $rcmail_config['password_vpopmaild_port'] = 89;
221 // cPanel Driver options
222 // --------------------------
223 // The cPanel Host name
224 $rcmail_config['password_cpanel_host'] = 'host.domain.com';
226 // The cPanel admin username
227 $rcmail_config['password_cpanel_username'] = 'username';
229 // The cPanel admin password
230 $rcmail_config['password_cpanel_password'] = 'password';
232 // The cPanel port to use
233 $rcmail_config['password_cpanel_port'] = 2082;
235 // Using ssl for cPanel connections?
236 $rcmail_config['password_cpanel_ssl'] = true;
238 // The cPanel theme in use
239 $rcmail_config['password_cpanel_theme'] = 'x';
242 // XIMSS (Communigate server) Driver options
243 // -----------------------------------------
244 // Host name of the Communigate server
245 $rcmail_config['password_ximss_host'] = 'mail.example.com';
247 // XIMSS port on Communigate server
248 $rcmail_config['password_ximss_port'] = 11024;
251 // chpasswd Driver options
252 // ---------------------
254 $rcmail_config['password_chpasswd_cmd'] = 'sudo /usr/sbin/chpasswd 2> /dev/null';
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;
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