|  | @@ -0,0 +1,432 @@
 | 
		
	
		
			
			|  | 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 | +$config['password_driver'] = 'sql';
 | 
		
	
		
			
			|  | 8 | +
 | 
		
	
		
			
			|  | 9 | +// Determine whether current password is required to change password.
 | 
		
	
		
			
			|  | 10 | +// Default: false.
 | 
		
	
		
			
			|  | 11 | +$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 | +$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 | +$config['password_require_nonalpha'] = false;
 | 
		
	
		
			
			|  | 20 | +
 | 
		
	
		
			
			|  | 21 | +// Enables logging of password changes into logs/password
 | 
		
	
		
			
			|  | 22 | +$config['password_log'] = false;
 | 
		
	
		
			
			|  | 23 | +
 | 
		
	
		
			
			|  | 24 | +// Comma-separated list of login exceptions for which password change
 | 
		
	
		
			
			|  | 25 | +// will be not available (no Password tab in Settings)
 | 
		
	
		
			
			|  | 26 | +$config['password_login_exceptions'] = null;
 | 
		
	
		
			
			|  | 27 | +
 | 
		
	
		
			
			|  | 28 | +// Array of hosts that support password changing. Default is NULL.
 | 
		
	
		
			
			|  | 29 | +// Listed hosts will feature a Password option in Settings; others will not.
 | 
		
	
		
			
			|  | 30 | +// Example: array('mail.example.com', 'mail2.example.org');
 | 
		
	
		
			
			|  | 31 | +$config['password_hosts'] = null;
 | 
		
	
		
			
			|  | 32 | +
 | 
		
	
		
			
			|  | 33 | +// Enables saving the new password even if it matches the old password. Useful
 | 
		
	
		
			
			|  | 34 | +// for upgrading the stored passwords after the encryption scheme has changed.
 | 
		
	
		
			
			|  | 35 | +$config['password_force_save'] = true;
 | 
		
	
		
			
			|  | 36 | +
 | 
		
	
		
			
			|  | 37 | +// Enables forcing new users to change their password at their first login.
 | 
		
	
		
			
			|  | 38 | +$config['password_force_new_user'] = false;
 | 
		
	
		
			
			|  | 39 | +
 | 
		
	
		
			
			|  | 40 | +// Default password hashing/crypting algorithm.
 | 
		
	
		
			
			|  | 41 | +// Possible options: des-crypt, ext-des-crypt, md5-crypt, blowfish-crypt,
 | 
		
	
		
			
			|  | 42 | +// sha256-crypt, sha512-crypt, md5, sha, smd5, ssha, samba, ad, dovecot, clear.
 | 
		
	
		
			
			|  | 43 | +// For details see password::hash_password() method.
 | 
		
	
		
			
			|  | 44 | +$config['password_algorithm'] = 'md5';
 | 
		
	
		
			
			|  | 45 | +
 | 
		
	
		
			
			|  | 46 | +// Password prefix (e.g. {CRYPT}, {SHA}) for passwords generated
 | 
		
	
		
			
			|  | 47 | +// using password_algorithm above. Default: empty.
 | 
		
	
		
			
			|  | 48 | +$config['password_algorithm_prefix'] = '';
 | 
		
	
		
			
			|  | 49 | +
 | 
		
	
		
			
			|  | 50 | +// Path for dovecotpw/doveadm-pw (if not in the $PATH).
 | 
		
	
		
			
			|  | 51 | +// Used for password_algorithm = 'dovecot'.
 | 
		
	
		
			
			|  | 52 | +// $config['password_dovecotpw'] = '/usr/local/sbin/doveadm pw'; // for dovecot-2.x
 | 
		
	
		
			
			|  | 53 | +$config['password_dovecotpw'] = '/usr/local/sbin/dovecotpw'; // for dovecot-1.x
 | 
		
	
		
			
			|  | 54 | +
 | 
		
	
		
			
			|  | 55 | +// Dovecot password scheme.
 | 
		
	
		
			
			|  | 56 | +// Used for password_algorithm = 'dovecot'.
 | 
		
	
		
			
			|  | 57 | +$config['password_dovecotpw_method'] = 'CRAM-MD5';
 | 
		
	
		
			
			|  | 58 | +
 | 
		
	
		
			
			|  | 59 | +// Iteration count parameter for Blowfish-based hashing algo.
 | 
		
	
		
			
			|  | 60 | +// It must be between 4 and 31. Default: 12.
 | 
		
	
		
			
			|  | 61 | +// Be aware, the higher the value, the longer it takes to generate the password hashes.
 | 
		
	
		
			
			|  | 62 | +$config['password_blowfish_cost'] = 12;
 | 
		
	
		
			
			|  | 63 | +
 | 
		
	
		
			
			|  | 64 | +// Number of rounds for the sha256 and sha512 crypt hashing algorithms.
 | 
		
	
		
			
			|  | 65 | +// Must be at least 1000. If not set, then the number of rounds is left up
 | 
		
	
		
			
			|  | 66 | +// to the crypt() implementation. On glibc this defaults to 5000.
 | 
		
	
		
			
			|  | 67 | +// Be aware, the higher the value, the longer it takes to generate the password hashes.
 | 
		
	
		
			
			|  | 68 | +//$config['password_crypt_rounds'] = 50000;
 | 
		
	
		
			
			|  | 69 | +
 | 
		
	
		
			
			|  | 70 | +// This option temporarily disables the password change functionality.
 | 
		
	
		
			
			|  | 71 | +// Use it when the users database server is in maintenance mode or sth like that.
 | 
		
	
		
			
			|  | 72 | +// You can set it to TRUE/FALSE or a text describing the reason
 | 
		
	
		
			
			|  | 73 | +// which will replace the default.
 | 
		
	
		
			
			|  | 74 | +$config['password_disabled'] = false;
 | 
		
	
		
			
			|  | 75 | +
 | 
		
	
		
			
			|  | 76 | +
 | 
		
	
		
			
			|  | 77 | +// SQL Driver options
 | 
		
	
		
			
			|  | 78 | +// ------------------
 | 
		
	
		
			
			|  | 79 | +// PEAR database DSN for performing the query. By default
 | 
		
	
		
			
			|  | 80 | +// Roundcube DB settings are used.
 | 
		
	
		
			
			|  | 81 | +$config['password_db_dsn'] = 'pgsql://MAIL_USER_DB_USER:MAIL_USER_DB_PASSWORD@MAIL_USER_DB_HOST:MAIL_USER_DB_PORT/MAIL_USER_DB_DB';
 | 
		
	
		
			
			|  | 82 | +
 | 
		
	
		
			
			|  | 83 | +// The SQL query used to change the password.
 | 
		
	
		
			
			|  | 84 | +// The query can contain the following macros that will be expanded as follows:
 | 
		
	
		
			
			|  | 85 | +//      %p is replaced with the plaintext new password
 | 
		
	
		
			
			|  | 86 | +//      %P is replaced with the crypted/hashed new password
 | 
		
	
		
			
			|  | 87 | +//         according to configured password_method
 | 
		
	
		
			
			|  | 88 | +//      %o is replaced with the old (current) password
 | 
		
	
		
			
			|  | 89 | +//      %O is replaced with the crypted/hashed old (current) password
 | 
		
	
		
			
			|  | 90 | +//         according to configured password_method
 | 
		
	
		
			
			|  | 91 | +//      %h is replaced with the imap host (from the session info)
 | 
		
	
		
			
			|  | 92 | +//      %u is replaced with the username (from the session info)
 | 
		
	
		
			
			|  | 93 | +//      %l is replaced with the local part of the username
 | 
		
	
		
			
			|  | 94 | +//         (in case the username is an email address)
 | 
		
	
		
			
			|  | 95 | +//      %d is replaced with the domain part of the username
 | 
		
	
		
			
			|  | 96 | +//         (in case the username is an email address)
 | 
		
	
		
			
			|  | 97 | +// Deprecated macros:
 | 
		
	
		
			
			|  | 98 | +//      %c is replaced with the crypt version of the new password, MD5 if available
 | 
		
	
		
			
			|  | 99 | +//         otherwise DES. More hash function can be enabled using the password_crypt_hash
 | 
		
	
		
			
			|  | 100 | +//         configuration parameter.
 | 
		
	
		
			
			|  | 101 | +//      %D is replaced with the dovecotpw-crypted version of the new password
 | 
		
	
		
			
			|  | 102 | +//      %n is replaced with the hashed version of the new password
 | 
		
	
		
			
			|  | 103 | +//      %q is replaced with the hashed password before the change
 | 
		
	
		
			
			|  | 104 | +// Escaping of macros is handled by this module.
 | 
		
	
		
			
			|  | 105 | +// Default: "SELECT update_passwd(%c, %u)"
 | 
		
	
		
			
			|  | 106 | +$config['password_query'] = 'UPDATE mailbox SET password=%c, modified=now() WHERE username=%u';
 | 
		
	
		
			
			|  | 107 | +
 | 
		
	
		
			
			|  | 108 | +// By default the crypt() function which is used to create the %c
 | 
		
	
		
			
			|  | 109 | +// parameter uses the md5 algorithm (deprecated, use %P).
 | 
		
	
		
			
			|  | 110 | +// You can choose between: des, md5, blowfish, sha256, sha512.
 | 
		
	
		
			
			|  | 111 | +$config['password_crypt_hash'] = 'md5';
 | 
		
	
		
			
			|  | 112 | +
 | 
		
	
		
			
			|  | 113 | +// By default domains in variables are using unicode.
 | 
		
	
		
			
			|  | 114 | +// Enable this option to use punycoded names
 | 
		
	
		
			
			|  | 115 | +$config['password_idn_ascii'] = false;
 | 
		
	
		
			
			|  | 116 | +
 | 
		
	
		
			
			|  | 117 | +// Enables use of password with crypt method prefix in %D, e.g. {MD5}$1$LUiMYWqx$fEkg/ggr/L6Mb2X7be4i1/
 | 
		
	
		
			
			|  | 118 | +// when using the %D macro (deprecated, use %P)
 | 
		
	
		
			
			|  | 119 | +$config['password_dovecotpw_with_method'] = false;
 | 
		
	
		
			
			|  | 120 | +
 | 
		
	
		
			
			|  | 121 | +// Using a password hash for %n and %q variables (deprecated, use %P).
 | 
		
	
		
			
			|  | 122 | +// Determine which hashing algorithm should be used to generate
 | 
		
	
		
			
			|  | 123 | +// the hashed new and current password for using them within the
 | 
		
	
		
			
			|  | 124 | +// SQL query. Requires PHP's 'hash' extension.
 | 
		
	
		
			
			|  | 125 | +$config['password_hash_algorithm'] = 'sha1';
 | 
		
	
		
			
			|  | 126 | +
 | 
		
	
		
			
			|  | 127 | +// You can also decide whether the hash should be provided
 | 
		
	
		
			
			|  | 128 | +// as hex string or in base64 encoded format.
 | 
		
	
		
			
			|  | 129 | +$config['password_hash_base64'] = false;
 | 
		
	
		
			
			|  | 130 | +
 | 
		
	
		
			
			|  | 131 | +
 | 
		
	
		
			
			|  | 132 | +// Poppassd Driver options
 | 
		
	
		
			
			|  | 133 | +// -----------------------
 | 
		
	
		
			
			|  | 134 | +// The host which changes the password
 | 
		
	
		
			
			|  | 135 | +$config['password_pop_host'] = 'localhost';
 | 
		
	
		
			
			|  | 136 | +
 | 
		
	
		
			
			|  | 137 | +// TCP port used for poppassd connections
 | 
		
	
		
			
			|  | 138 | +$config['password_pop_port'] = 106;
 | 
		
	
		
			
			|  | 139 | +
 | 
		
	
		
			
			|  | 140 | +
 | 
		
	
		
			
			|  | 141 | +// SASL Driver options
 | 
		
	
		
			
			|  | 142 | +// -------------------
 | 
		
	
		
			
			|  | 143 | +// Additional arguments for the saslpasswd2 call
 | 
		
	
		
			
			|  | 144 | +$config['password_saslpasswd_args'] = '';
 | 
		
	
		
			
			|  | 145 | +
 | 
		
	
		
			
			|  | 146 | +
 | 
		
	
		
			
			|  | 147 | +// LDAP and LDAP_SIMPLE Driver options
 | 
		
	
		
			
			|  | 148 | +// -----------------------------------
 | 
		
	
		
			
			|  | 149 | +// LDAP server name to connect to. 
 | 
		
	
		
			
			|  | 150 | +// You can provide one or several hosts in an array in which case the hosts are tried from left to right.
 | 
		
	
		
			
			|  | 151 | +// Exemple: array('ldap1.exemple.com', 'ldap2.exemple.com');
 | 
		
	
		
			
			|  | 152 | +// Default: 'localhost'
 | 
		
	
		
			
			|  | 153 | +$config['password_ldap_host'] = 'localhost';
 | 
		
	
		
			
			|  | 154 | +
 | 
		
	
		
			
			|  | 155 | +// LDAP server port to connect to
 | 
		
	
		
			
			|  | 156 | +// Default: '389'
 | 
		
	
		
			
			|  | 157 | +$config['password_ldap_port'] = '389';
 | 
		
	
		
			
			|  | 158 | +
 | 
		
	
		
			
			|  | 159 | +// TLS is started after connecting
 | 
		
	
		
			
			|  | 160 | +// Using TLS for password modification is recommanded.
 | 
		
	
		
			
			|  | 161 | +// Default: false
 | 
		
	
		
			
			|  | 162 | +$config['password_ldap_starttls'] = false;
 | 
		
	
		
			
			|  | 163 | +
 | 
		
	
		
			
			|  | 164 | +// LDAP version
 | 
		
	
		
			
			|  | 165 | +// Default: '3'
 | 
		
	
		
			
			|  | 166 | +$config['password_ldap_version'] = '3';
 | 
		
	
		
			
			|  | 167 | +
 | 
		
	
		
			
			|  | 168 | +// LDAP base name (root directory)
 | 
		
	
		
			
			|  | 169 | +// Exemple: 'dc=exemple,dc=com'
 | 
		
	
		
			
			|  | 170 | +$config['password_ldap_basedn'] = 'dc=exemple,dc=com';
 | 
		
	
		
			
			|  | 171 | +
 | 
		
	
		
			
			|  | 172 | +// LDAP connection method
 | 
		
	
		
			
			|  | 173 | +// There is two connection method for changing a user's LDAP password.
 | 
		
	
		
			
			|  | 174 | +// 'user': use user credential (recommanded, require password_confirm_current=true)
 | 
		
	
		
			
			|  | 175 | +// 'admin': use admin credential (this mode require password_ldap_adminDN and password_ldap_adminPW)
 | 
		
	
		
			
			|  | 176 | +// Default: 'user'
 | 
		
	
		
			
			|  | 177 | +$config['password_ldap_method'] = 'user';
 | 
		
	
		
			
			|  | 178 | +
 | 
		
	
		
			
			|  | 179 | +// LDAP Admin DN
 | 
		
	
		
			
			|  | 180 | +// Used only in admin connection mode
 | 
		
	
		
			
			|  | 181 | +// Default: null
 | 
		
	
		
			
			|  | 182 | +$config['password_ldap_adminDN'] = null;
 | 
		
	
		
			
			|  | 183 | +
 | 
		
	
		
			
			|  | 184 | +// LDAP Admin Password
 | 
		
	
		
			
			|  | 185 | +// Used only in admin connection mode
 | 
		
	
		
			
			|  | 186 | +// Default: null
 | 
		
	
		
			
			|  | 187 | +$config['password_ldap_adminPW'] = null;
 | 
		
	
		
			
			|  | 188 | +
 | 
		
	
		
			
			|  | 189 | +// LDAP user DN mask
 | 
		
	
		
			
			|  | 190 | +// The user's DN is mandatory and as we only have his login,
 | 
		
	
		
			
			|  | 191 | +// we need to re-create his DN using a mask
 | 
		
	
		
			
			|  | 192 | +// '%login' will be replaced by the current roundcube user's login
 | 
		
	
		
			
			|  | 193 | +// '%name' will be replaced by the current roundcube user's name part
 | 
		
	
		
			
			|  | 194 | +// '%domain' will be replaced by the current roundcube user's domain part
 | 
		
	
		
			
			|  | 195 | +// '%dc' will be replaced by domain name hierarchal string e.g. "dc=test,dc=domain,dc=com"
 | 
		
	
		
			
			|  | 196 | +// Exemple: 'uid=%login,ou=people,dc=exemple,dc=com'
 | 
		
	
		
			
			|  | 197 | +$config['password_ldap_userDN_mask'] = 'uid=%login,ou=people,dc=exemple,dc=com';
 | 
		
	
		
			
			|  | 198 | +
 | 
		
	
		
			
			|  | 199 | +// LDAP search DN
 | 
		
	
		
			
			|  | 200 | +// The DN roundcube should bind with to find out user's DN
 | 
		
	
		
			
			|  | 201 | +// based on his login. Note that you should comment out the default
 | 
		
	
		
			
			|  | 202 | +// password_ldap_userDN_mask setting for this to take effect.
 | 
		
	
		
			
			|  | 203 | +// Use this if you cannot specify a general template for user DN with
 | 
		
	
		
			
			|  | 204 | +// password_ldap_userDN_mask. You need to perform a search based on
 | 
		
	
		
			
			|  | 205 | +// users login to find his DN instead. A common reason might be that
 | 
		
	
		
			
			|  | 206 | +// your users are placed under different ou's like engineering or
 | 
		
	
		
			
			|  | 207 | +// sales which cannot be derived from their login only.
 | 
		
	
		
			
			|  | 208 | +$config['password_ldap_searchDN'] = 'cn=roundcube,ou=services,dc=example,dc=com';
 | 
		
	
		
			
			|  | 209 | +
 | 
		
	
		
			
			|  | 210 | +// LDAP search password
 | 
		
	
		
			
			|  | 211 | +// If password_ldap_searchDN is set, the password to use for
 | 
		
	
		
			
			|  | 212 | +// binding to search for user's DN. Note that you should comment out the default
 | 
		
	
		
			
			|  | 213 | +// password_ldap_userDN_mask setting for this to take effect.
 | 
		
	
		
			
			|  | 214 | +// Warning: Be sure to set approperiate permissions on this file so this password
 | 
		
	
		
			
			|  | 215 | +// is only accesible to roundcube and don't forget to restrict roundcube's access to
 | 
		
	
		
			
			|  | 216 | +// your directory as much as possible using ACLs. Should this password be compromised
 | 
		
	
		
			
			|  | 217 | +// you want to minimize the damage.
 | 
		
	
		
			
			|  | 218 | +$config['password_ldap_searchPW'] = 'secret';
 | 
		
	
		
			
			|  | 219 | +
 | 
		
	
		
			
			|  | 220 | +// LDAP search base
 | 
		
	
		
			
			|  | 221 | +// If password_ldap_searchDN is set, the base to search in using the filter below.
 | 
		
	
		
			
			|  | 222 | +// Note that you should comment out the default password_ldap_userDN_mask setting
 | 
		
	
		
			
			|  | 223 | +// for this to take effect.
 | 
		
	
		
			
			|  | 224 | +$config['password_ldap_search_base'] = 'ou=people,dc=example,dc=com';
 | 
		
	
		
			
			|  | 225 | +
 | 
		
	
		
			
			|  | 226 | +// LDAP search filter
 | 
		
	
		
			
			|  | 227 | +// If password_ldap_searchDN is set, the filter to use when
 | 
		
	
		
			
			|  | 228 | +// searching for user's DN. Note that you should comment out the default
 | 
		
	
		
			
			|  | 229 | +// password_ldap_userDN_mask setting for this to take effect.
 | 
		
	
		
			
			|  | 230 | +// '%login' will be replaced by the current roundcube user's login
 | 
		
	
		
			
			|  | 231 | +// '%name' will be replaced by the current roundcube user's name part
 | 
		
	
		
			
			|  | 232 | +// '%domain' will be replaced by the current roundcube user's domain part
 | 
		
	
		
			
			|  | 233 | +// '%dc' will be replaced by domain name hierarchal string e.g. "dc=test,dc=domain,dc=com"
 | 
		
	
		
			
			|  | 234 | +// Example: '(uid=%login)'
 | 
		
	
		
			
			|  | 235 | +// Example: '(&(objectClass=posixAccount)(uid=%login))'
 | 
		
	
		
			
			|  | 236 | +$config['password_ldap_search_filter'] = '(uid=%login)';
 | 
		
	
		
			
			|  | 237 | +
 | 
		
	
		
			
			|  | 238 | +// LDAP password hash type
 | 
		
	
		
			
			|  | 239 | +// Standard LDAP encryption type which must be one of: crypt,
 | 
		
	
		
			
			|  | 240 | +// ext_des, md5crypt, blowfish, md5, sha, smd5, ssha, ad, cram-md5 (dovecot style) or clear.
 | 
		
	
		
			
			|  | 241 | +// Set to 'default' if you want to use method specified in password_algorithm option above.
 | 
		
	
		
			
			|  | 242 | +// Multiple password Values can be generated by concatenating encodings with a +. E.g. 'cram-md5+crypt'
 | 
		
	
		
			
			|  | 243 | +// Default: 'crypt'.
 | 
		
	
		
			
			|  | 244 | +$config['password_ldap_encodage'] = 'crypt';
 | 
		
	
		
			
			|  | 245 | +
 | 
		
	
		
			
			|  | 246 | +// LDAP password attribute
 | 
		
	
		
			
			|  | 247 | +// Name of the ldap's attribute used for storing user password
 | 
		
	
		
			
			|  | 248 | +// Default: 'userPassword'
 | 
		
	
		
			
			|  | 249 | +$config['password_ldap_pwattr'] = 'userPassword';
 | 
		
	
		
			
			|  | 250 | +
 | 
		
	
		
			
			|  | 251 | +// LDAP password force replace
 | 
		
	
		
			
			|  | 252 | +// Force LDAP replace in cases where ACL allows only replace not read
 | 
		
	
		
			
			|  | 253 | +// See http://pear.php.net/package/Net_LDAP2/docs/latest/Net_LDAP2/Net_LDAP2_Entry.html#methodreplace
 | 
		
	
		
			
			|  | 254 | +// Default: true
 | 
		
	
		
			
			|  | 255 | +$config['password_ldap_force_replace'] = true;
 | 
		
	
		
			
			|  | 256 | +
 | 
		
	
		
			
			|  | 257 | +// LDAP Password Last Change Date
 | 
		
	
		
			
			|  | 258 | +// Some places use an attribute to store the date of the last password change
 | 
		
	
		
			
			|  | 259 | +// The date is meassured in "days since epoch" (an integer value)
 | 
		
	
		
			
			|  | 260 | +// Whenever the password is changed, the attribute will be updated if set (e.g. shadowLastChange)
 | 
		
	
		
			
			|  | 261 | +$config['password_ldap_lchattr'] = '';
 | 
		
	
		
			
			|  | 262 | +
 | 
		
	
		
			
			|  | 263 | +// LDAP Samba password attribute, e.g. sambaNTPassword
 | 
		
	
		
			
			|  | 264 | +// Name of the LDAP's Samba attribute used for storing user password
 | 
		
	
		
			
			|  | 265 | +$config['password_ldap_samba_pwattr'] = '';
 | 
		
	
		
			
			|  | 266 | + 
 | 
		
	
		
			
			|  | 267 | +// LDAP Samba Password Last Change Date attribute, e.g. sambaPwdLastSet
 | 
		
	
		
			
			|  | 268 | +// Some places use an attribute to store the date of the last password change
 | 
		
	
		
			
			|  | 269 | +// The date is meassured in "seconds since epoch" (an integer value)
 | 
		
	
		
			
			|  | 270 | +// Whenever the password is changed, the attribute will be updated if set
 | 
		
	
		
			
			|  | 271 | +$config['password_ldap_samba_lchattr'] = '';
 | 
		
	
		
			
			|  | 272 | +
 | 
		
	
		
			
			|  | 273 | +
 | 
		
	
		
			
			|  | 274 | +// DirectAdmin Driver options
 | 
		
	
		
			
			|  | 275 | +// --------------------------
 | 
		
	
		
			
			|  | 276 | +// The host which changes the password
 | 
		
	
		
			
			|  | 277 | +// Use 'ssl://host' instead of 'tcp://host' when running DirectAdmin over SSL.
 | 
		
	
		
			
			|  | 278 | +// The host can contain the following macros that will be expanded as follows:
 | 
		
	
		
			
			|  | 279 | +//     %h is replaced with the imap host (from the session info)
 | 
		
	
		
			
			|  | 280 | +//     %d is replaced with the domain part of the username (if the username is an email)
 | 
		
	
		
			
			|  | 281 | +$config['password_directadmin_host'] = 'tcp://localhost';
 | 
		
	
		
			
			|  | 282 | +
 | 
		
	
		
			
			|  | 283 | +// TCP port used for DirectAdmin connections
 | 
		
	
		
			
			|  | 284 | +$config['password_directadmin_port'] = 2222;
 | 
		
	
		
			
			|  | 285 | +
 | 
		
	
		
			
			|  | 286 | +
 | 
		
	
		
			
			|  | 287 | +// vpopmaild Driver options
 | 
		
	
		
			
			|  | 288 | +// -----------------------
 | 
		
	
		
			
			|  | 289 | +// The host which changes the password
 | 
		
	
		
			
			|  | 290 | +$config['password_vpopmaild_host'] = 'localhost';
 | 
		
	
		
			
			|  | 291 | +
 | 
		
	
		
			
			|  | 292 | +// TCP port used for vpopmaild connections
 | 
		
	
		
			
			|  | 293 | +$config['password_vpopmaild_port'] = 89;
 | 
		
	
		
			
			|  | 294 | +
 | 
		
	
		
			
			|  | 295 | +// Timout used for the connection to vpopmaild (in seconds)
 | 
		
	
		
			
			|  | 296 | +$config['password_vpopmaild_timeout'] = 10;
 | 
		
	
		
			
			|  | 297 | +
 | 
		
	
		
			
			|  | 298 | +
 | 
		
	
		
			
			|  | 299 | +// cPanel Driver options
 | 
		
	
		
			
			|  | 300 | +// --------------------------
 | 
		
	
		
			
			|  | 301 | +// The cPanel Host name
 | 
		
	
		
			
			|  | 302 | +$config['password_cpanel_host'] = 'host.domain.com';
 | 
		
	
		
			
			|  | 303 | +
 | 
		
	
		
			
			|  | 304 | +// The cPanel admin username
 | 
		
	
		
			
			|  | 305 | +$config['password_cpanel_username'] = 'username';
 | 
		
	
		
			
			|  | 306 | +
 | 
		
	
		
			
			|  | 307 | +// The cPanel admin password
 | 
		
	
		
			
			|  | 308 | +$config['password_cpanel_password'] = 'password';
 | 
		
	
		
			
			|  | 309 | +
 | 
		
	
		
			
			|  | 310 | +// The cPanel port to use
 | 
		
	
		
			
			|  | 311 | +$config['password_cpanel_port'] = 2087;
 | 
		
	
		
			
			|  | 312 | +
 | 
		
	
		
			
			|  | 313 | +
 | 
		
	
		
			
			|  | 314 | +// XIMSS (Communigate server) Driver options
 | 
		
	
		
			
			|  | 315 | +// -----------------------------------------
 | 
		
	
		
			
			|  | 316 | +// Host name of the Communigate server
 | 
		
	
		
			
			|  | 317 | +$config['password_ximss_host'] = 'mail.example.com';
 | 
		
	
		
			
			|  | 318 | +
 | 
		
	
		
			
			|  | 319 | +// XIMSS port on Communigate server
 | 
		
	
		
			
			|  | 320 | +$config['password_ximss_port'] = 11024;
 | 
		
	
		
			
			|  | 321 | +
 | 
		
	
		
			
			|  | 322 | +
 | 
		
	
		
			
			|  | 323 | +// chpasswd Driver options
 | 
		
	
		
			
			|  | 324 | +// ---------------------
 | 
		
	
		
			
			|  | 325 | +// Command to use (see "Sudo setup" in README)
 | 
		
	
		
			
			|  | 326 | +$config['password_chpasswd_cmd'] = 'sudo /usr/sbin/chpasswd 2> /dev/null';
 | 
		
	
		
			
			|  | 327 | +
 | 
		
	
		
			
			|  | 328 | +
 | 
		
	
		
			
			|  | 329 | +// XMail Driver options
 | 
		
	
		
			
			|  | 330 | +// ---------------------
 | 
		
	
		
			
			|  | 331 | +$config['xmail_host'] = 'localhost';
 | 
		
	
		
			
			|  | 332 | +$config['xmail_user'] = 'YourXmailControlUser';
 | 
		
	
		
			
			|  | 333 | +$config['xmail_pass'] = 'YourXmailControlPass';
 | 
		
	
		
			
			|  | 334 | +$config['xmail_port'] = 6017;
 | 
		
	
		
			
			|  | 335 | +
 | 
		
	
		
			
			|  | 336 | +
 | 
		
	
		
			
			|  | 337 | +// hMail Driver options
 | 
		
	
		
			
			|  | 338 | +// -----------------------
 | 
		
	
		
			
			|  | 339 | +// Remote hMailServer configuration
 | 
		
	
		
			
			|  | 340 | +// true:  HMailserver is on a remote box (php.ini: com.allow_dcom = true)
 | 
		
	
		
			
			|  | 341 | +// false: Hmailserver is on same box as PHP
 | 
		
	
		
			
			|  | 342 | +$config['hmailserver_remote_dcom'] = false;
 | 
		
	
		
			
			|  | 343 | +// Windows credentials
 | 
		
	
		
			
			|  | 344 | +$config['hmailserver_server'] = array(
 | 
		
	
		
			
			|  | 345 | +    'Server'   => 'localhost',      // hostname or ip address
 | 
		
	
		
			
			|  | 346 | +    'Username' => 'administrator',  // windows username
 | 
		
	
		
			
			|  | 347 | +    'Password' => 'password'        // windows user password
 | 
		
	
		
			
			|  | 348 | +);
 | 
		
	
		
			
			|  | 349 | +
 | 
		
	
		
			
			|  | 350 | +
 | 
		
	
		
			
			|  | 351 | +// Virtualmin Driver options
 | 
		
	
		
			
			|  | 352 | +// -------------------------
 | 
		
	
		
			
			|  | 353 | +// Username format:
 | 
		
	
		
			
			|  | 354 | +// 0: username@domain
 | 
		
	
		
			
			|  | 355 | +// 1: username%domain
 | 
		
	
		
			
			|  | 356 | +// 2: username.domain
 | 
		
	
		
			
			|  | 357 | +// 3: domain.username
 | 
		
	
		
			
			|  | 358 | +// 4: username-domain
 | 
		
	
		
			
			|  | 359 | +// 5: domain-username
 | 
		
	
		
			
			|  | 360 | +// 6: username_domain
 | 
		
	
		
			
			|  | 361 | +// 7: domain_username
 | 
		
	
		
			
			|  | 362 | +$config['password_virtualmin_format'] = 0;
 | 
		
	
		
			
			|  | 363 | +
 | 
		
	
		
			
			|  | 364 | +
 | 
		
	
		
			
			|  | 365 | +// pw_usermod Driver options
 | 
		
	
		
			
			|  | 366 | +// --------------------------
 | 
		
	
		
			
			|  | 367 | +// Use comma delimited exlist to disable password change for users.
 | 
		
	
		
			
			|  | 368 | +// See "Sudo setup" in README file.
 | 
		
	
		
			
			|  | 369 | +$config['password_pw_usermod_cmd'] = 'sudo /usr/sbin/pw usermod -h 0 -n';
 | 
		
	
		
			
			|  | 370 | +
 | 
		
	
		
			
			|  | 371 | +
 | 
		
	
		
			
			|  | 372 | +// DBMail Driver options
 | 
		
	
		
			
			|  | 373 | +// -------------------
 | 
		
	
		
			
			|  | 374 | +// Additional arguments for the dbmail-users call
 | 
		
	
		
			
			|  | 375 | +$config['password_dbmail_args'] = '-p sha512';
 | 
		
	
		
			
			|  | 376 | +
 | 
		
	
		
			
			|  | 377 | +
 | 
		
	
		
			
			|  | 378 | +// Expect Driver options
 | 
		
	
		
			
			|  | 379 | +// ---------------------
 | 
		
	
		
			
			|  | 380 | +// Location of expect binary
 | 
		
	
		
			
			|  | 381 | +$config['password_expect_bin'] = '/usr/bin/expect';
 | 
		
	
		
			
			|  | 382 | +
 | 
		
	
		
			
			|  | 383 | +// Location of expect script (see helpers/passwd-expect)
 | 
		
	
		
			
			|  | 384 | +$config['password_expect_script'] = '';
 | 
		
	
		
			
			|  | 385 | +
 | 
		
	
		
			
			|  | 386 | +// Arguments for the expect script. See the helpers/passwd-expect file for details.
 | 
		
	
		
			
			|  | 387 | +// This is probably a good starting default:
 | 
		
	
		
			
			|  | 388 | +//   -telent -host localhost -output /tmp/passwd.log -log /tmp/passwd.log
 | 
		
	
		
			
			|  | 389 | +$config['password_expect_params'] = '';
 | 
		
	
		
			
			|  | 390 | +
 | 
		
	
		
			
			|  | 391 | +
 | 
		
	
		
			
			|  | 392 | +// smb Driver options
 | 
		
	
		
			
			|  | 393 | +// ---------------------
 | 
		
	
		
			
			|  | 394 | +// Samba host (default: localhost)
 | 
		
	
		
			
			|  | 395 | +// Supported replacement variables:
 | 
		
	
		
			
			|  | 396 | +// %n - hostname ($_SERVER['SERVER_NAME'])
 | 
		
	
		
			
			|  | 397 | +// %t - hostname without the first part
 | 
		
	
		
			
			|  | 398 | +// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
 | 
		
	
		
			
			|  | 399 | +$config['password_smb_host'] = 'localhost';
 | 
		
	
		
			
			|  | 400 | +// Location of smbpasswd binary
 | 
		
	
		
			
			|  | 401 | +$config['password_smb_cmd'] = '/usr/bin/smbpasswd';
 | 
		
	
		
			
			|  | 402 | +
 | 
		
	
		
			
			|  | 403 | +// gearman driver options
 | 
		
	
		
			
			|  | 404 | +// ---------------------
 | 
		
	
		
			
			|  | 405 | +// Gearman host (default: localhost)
 | 
		
	
		
			
			|  | 406 | +$config['password_gearman_host'] = 'localhost';
 | 
		
	
		
			
			|  | 407 | +
 | 
		
	
		
			
			|  | 408 | +
 | 
		
	
		
			
			|  | 409 | +// Plesk/PPA Driver options
 | 
		
	
		
			
			|  | 410 | +// --------------------
 | 
		
	
		
			
			|  | 411 | +// You need to allow RCP for IP of roundcube-server in Plesk/PPA Panel 
 | 
		
	
		
			
			|  | 412 | +
 | 
		
	
		
			
			|  | 413 | +// Plesk RCP Host
 | 
		
	
		
			
			|  | 414 | +$config['password_plesk_host'] = '10.0.0.5';
 | 
		
	
		
			
			|  | 415 | +
 | 
		
	
		
			
			|  | 416 | +// Plesk RPC Username
 | 
		
	
		
			
			|  | 417 | +$config['password_plesk_user'] = 'admin';
 | 
		
	
		
			
			|  | 418 | +
 | 
		
	
		
			
			|  | 419 | +// Plesk RPC Password
 | 
		
	
		
			
			|  | 420 | +$config['password_plesk_pass'] = 'password';
 | 
		
	
		
			
			|  | 421 | +
 | 
		
	
		
			
			|  | 422 | +// Plesk RPC Port
 | 
		
	
		
			
			|  | 423 | +$config['password_plesk_rpc_port'] = '8443';
 | 
		
	
		
			
			|  | 424 | +
 | 
		
	
		
			
			|  | 425 | +// Plesk RPC Path
 | 
		
	
		
			
			|  | 426 | +$config['password_plesk_rpc_path'] = 'enterprise/control/agent.php';
 | 
		
	
		
			
			|  | 427 | +
 | 
		
	
		
			
			|  | 428 | +
 | 
		
	
		
			
			|  | 429 | +// kasswd Driver options
 | 
		
	
		
			
			|  | 430 | +// ---------------------
 | 
		
	
		
			
			|  | 431 | +// Command to use
 | 
		
	
		
			
			|  | 432 | +$config['password_kpasswd_cmd'] = '/usr/bin/kpasswd';
 |