| 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 | // Exemple: 'uid=%login,ou=people,dc=exemple,dc=com' |
|---|
| 131 | $rcmail_config['password_ldap_userDN_mask'] = 'uid=%login,ou=people,dc=exemple,dc=com'; |
|---|
| 132 | |
|---|
| 133 | // LDAP search DN |
|---|
| 134 | // The DN roundcube should bind with to find out user's DN |
|---|
| 135 | // based on his login. Note that you should comment out the default |
|---|
| 136 | // password_ldap_userDN_mask setting for this to take effect. |
|---|
| 137 | // Use this if you cannot specify a general template for user DN with |
|---|
| 138 | // password_ldap_userDN_mask. You need to perform a search based on |
|---|
| 139 | // users login to find his DN instead. A common reason might be that |
|---|
| 140 | // your users are placed under different ou's like engineering or |
|---|
| 141 | // sales which cannot be derived from their login only. |
|---|
| 142 | $rcmail_config['password_ldap_searchDN'] = 'cn=roundcube,ou=services,dc=example,dc=com'; |
|---|
| 143 | |
|---|
| 144 | // LDAP search password |
|---|
| 145 | // If password_ldap_searchDN is set, the password to use for |
|---|
| 146 | // binding to search for user's DN. Note that you should comment out the default |
|---|
| 147 | // password_ldap_userDN_mask setting for this to take effect. |
|---|
| 148 | // Warning: Be sure to set approperiate permissions on this file so this password |
|---|
| 149 | // is only accesible to roundcube and don't forget to restrict roundcube's access to |
|---|
| 150 | // your directory as much as possible using ACLs. Should this password be compromised |
|---|
| 151 | // you want to minimize the damage. |
|---|
| 152 | $rcmail_config['password_ldap_searchPW'] = 'secret'; |
|---|
| 153 | |
|---|
| 154 | // LDAP search base |
|---|
| 155 | // If password_ldap_searchDN is set, the base to search in using the filter below. |
|---|
| 156 | // Note that you should comment out the default password_ldap_userDN_mask setting |
|---|
| 157 | // for this to take effect. |
|---|
| 158 | $rcmail_config['password_ldap_search_base'] = 'ou=people,dc=example,dc=com'; |
|---|
| 159 | |
|---|
| 160 | // LDAP search filter |
|---|
| 161 | // If password_ldap_searchDN is set, the filter to use when |
|---|
| 162 | // searching for user's DN. Note that you should comment out the default |
|---|
| 163 | // password_ldap_userDN_mask setting for this to take effect. |
|---|
| 164 | // '%login' will be replaced by the current roundcube user's login |
|---|
| 165 | // '%name' will be replaced by the current roundcube user's name part |
|---|
| 166 | // '%domain' will be replaced by the current roundcube user's domain part |
|---|
| 167 | // Example: '(uid=%login)' |
|---|
| 168 | // Example: '(&(objectClass=posixAccount)(uid=%login))' |
|---|
| 169 | $rcmail_config['password_ldap_search_filter'] = '(uid=%login)'; |
|---|
| 170 | |
|---|
| 171 | // LDAP password hash type |
|---|
| 172 | // Standard LDAP encryption type which must be one of: crypt, |
|---|
| 173 | // ext_des, md5crypt, blowfish, md5, sha, smd5, ssha, or clear. |
|---|
| 174 | // Please note that most encodage types require external libraries |
|---|
| 175 | // to be included in your PHP installation, see function hashPassword in drivers/ldap.php for more info. |
|---|
| 176 | // Default: 'crypt' |
|---|
| 177 | $rcmail_config['password_ldap_encodage'] = 'crypt'; |
|---|
| 178 | |
|---|
| 179 | // LDAP password attribute |
|---|
| 180 | // Name of the ldap's attribute used for storing user password |
|---|
| 181 | // Default: 'userPassword' |
|---|
| 182 | $rcmail_config['password_ldap_pwattr'] = 'userPassword'; |
|---|
| 183 | |
|---|
| 184 | // LDAP password force replace |
|---|
| 185 | // Force LDAP replace in cases where ACL allows only replace not read |
|---|
| 186 | // See http://pear.php.net/package/Net_LDAP2/docs/latest/Net_LDAP2/Net_LDAP2_Entry.html#methodreplace |
|---|
| 187 | // Default: true |
|---|
| 188 | $rcmail_config['password_ldap_force_replace'] = true; |
|---|
| 189 | |
|---|
| 190 | |
|---|
| 191 | // DirectAdmin Driver options |
|---|
| 192 | // -------------------------- |
|---|
| 193 | // The host which changes the password |
|---|
| 194 | // Use 'ssl://serverip' instead of 'tcp://serverip' when running DirectAdmin over SSL. |
|---|
| 195 | $rcmail_config['password_directadmin_host'] = 'tcp://localhost'; |
|---|
| 196 | |
|---|
| 197 | // TCP port used for DirectAdmin connections |
|---|
| 198 | $rcmail_config['password_directadmin_port'] = 2222; |
|---|
| 199 | |
|---|
| 200 | |
|---|
| 201 | // vpopmaild Driver options |
|---|
| 202 | // ----------------------- |
|---|
| 203 | // The host which changes the password |
|---|
| 204 | $rcmail_config['password_vpopmaild_host'] = 'localhost'; |
|---|
| 205 | |
|---|
| 206 | // TCP port used for vpopmaild connections |
|---|
| 207 | $rcmail_config['password_vpopmaild_port'] = 89; |
|---|
| 208 | |
|---|
| 209 | |
|---|
| 210 | // cPanel Driver options |
|---|
| 211 | // -------------------------- |
|---|
| 212 | // The cPanel Host name |
|---|
| 213 | $rcmail_config['password_cpanel_host'] = 'host.domain.com'; |
|---|
| 214 | |
|---|
| 215 | // The cPanel admin username |
|---|
| 216 | $rcmail_config['password_cpanel_username'] = 'username'; |
|---|
| 217 | |
|---|
| 218 | // The cPanel admin password |
|---|
| 219 | $rcmail_config['password_cpanel_password'] = 'password'; |
|---|
| 220 | |
|---|
| 221 | // The cPanel port to use |
|---|
| 222 | $rcmail_config['password_cpanel_port'] = 2082; |
|---|
| 223 | |
|---|
| 224 | // Using ssl for cPanel connections? |
|---|
| 225 | $rcmail_config['password_cpanel_ssl'] = true; |
|---|
| 226 | |
|---|
| 227 | // The cPanel theme in use |
|---|
| 228 | $rcmail_config['password_cpanel_theme'] = 'x'; |
|---|
| 229 | |
|---|
| 230 | |
|---|
| 231 | // XIMSS (Communigate server) Driver options |
|---|
| 232 | // ----------------------------------------- |
|---|
| 233 | // Host name of the Communigate server |
|---|
| 234 | $rcmail_config['password_ximss_host'] = 'mail.example.com'; |
|---|
| 235 | |
|---|
| 236 | // XIMSS port on Communigate server |
|---|
| 237 | $rcmail_config['password_ximss_port'] = 11024; |
|---|
| 238 | |
|---|
| 239 | |
|---|
| 240 | // chpasswd Driver options |
|---|
| 241 | // --------------------- |
|---|
| 242 | // Command to use |
|---|
| 243 | $rcmail_config['password_chpasswd_cmd'] = 'sudo /usr/sbin/chpasswd 2> /dev/null'; |
|---|
| 244 | |
|---|
| 245 | |
|---|
| 246 | // XMail Driver options |
|---|
| 247 | // --------------------- |
|---|
| 248 | $rcmail_config['xmail_host'] = 'localhost'; |
|---|
| 249 | $rcmail_config['xmail_user'] = 'YourXmailControlUser'; |
|---|
| 250 | $rcmail_config['xmail_pass'] = 'YourXmailControlPass'; |
|---|
| 251 | $rcmail_config['xmail_port'] = 6017; |
|---|
| 252 | |
|---|