| 1 | <?php |
|---|
| 2 | |
|---|
| 3 | // Password Plugin options |
|---|
| 4 | // ----------------------- |
|---|
| 5 | // A driver to use for password change. Default: "sql". |
|---|
| 6 | $rcmail_config['password_driver'] = 'sql'; |
|---|
| 7 | |
|---|
| 8 | // Determine whether current password is required to change password. |
|---|
| 9 | // Default: false. |
|---|
| 10 | $rcmail_config['password_confirm_current'] = true; |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | // SQL Driver options |
|---|
| 14 | // ------------------ |
|---|
| 15 | // PEAR database DSN for performing the query. By default |
|---|
| 16 | // Roundcube DB settings are used. |
|---|
| 17 | $rcmail_config['password_db_dsn'] = ''; |
|---|
| 18 | |
|---|
| 19 | // The SQL query used to change the password. |
|---|
| 20 | // The query can contain the following macros that will be expanded as follows: |
|---|
| 21 | // %p is replaced with the plaintext new password |
|---|
| 22 | // %c is replaced with the crypt version of the new password, MD5 if available |
|---|
| 23 | // otherwise DES. |
|---|
| 24 | // %u is replaced with the username (from the session info) |
|---|
| 25 | // %o is replaced with the password before the change |
|---|
| 26 | // %h is replaced with the imap host (from the session info) |
|---|
| 27 | // Escaping of macros is handled by this module. |
|---|
| 28 | // Default: "SELECT update_passwd(%c, %u)" |
|---|
| 29 | $rcmail_config['password_query'] = 'SELECT update_passwd(%c, %u)'; |
|---|
| 30 | |
|---|
| 31 | |
|---|
| 32 | // Poppassd Driver options |
|---|
| 33 | // ----------------------- |
|---|
| 34 | // The host which changes the password |
|---|
| 35 | $rcmail_config['password_pop_host'] = 'localhost'; |
|---|
| 36 | |
|---|
| 37 | // TCP port used for poppassd connections |
|---|
| 38 | $rcmail_config['password_pop_port'] = 106; |
|---|
| 39 | |
|---|
| 40 | |
|---|
| 41 | // SASL Driver options |
|---|
| 42 | // ------------------- |
|---|
| 43 | // Additional arguments for the saslpasswd2 call |
|---|
| 44 | $rcmail_config['password_saslpasswd_args'] = ''; |
|---|
| 45 | |
|---|
| 46 | |
|---|
| 47 | // LDAP Driver options |
|---|
| 48 | // ------------------- |
|---|
| 49 | // LDAP server name to connect to. |
|---|
| 50 | // You can provide one or several hosts in an array in which case the hosts are tried from left to right. |
|---|
| 51 | // Exemple: array('ldap1.exemple.com', 'ldap2.exemple.com'); |
|---|
| 52 | // Default: 'localhost' |
|---|
| 53 | $rcmail_config['password_ldap_host'] = 'localhost'; |
|---|
| 54 | |
|---|
| 55 | // LDAP server port to connect to |
|---|
| 56 | // Default: '389' |
|---|
| 57 | $rcmail_config['password_ldap_port'] = '389'; |
|---|
| 58 | |
|---|
| 59 | // TLS is started after connecting |
|---|
| 60 | // Using TLS for password modification is recommanded. |
|---|
| 61 | // Default: false |
|---|
| 62 | $rcmail_config['password_ldap_starttls'] = false; |
|---|
| 63 | |
|---|
| 64 | // LDAP version |
|---|
| 65 | // Default: '3' |
|---|
| 66 | $rcmail_config['password_ldap_version'] = '3'; |
|---|
| 67 | |
|---|
| 68 | // LDAP base name (root directory) |
|---|
| 69 | // Exemple: 'dc=exemple,dc=com' |
|---|
| 70 | $rcmail_config['password_ldap_basedn'] = 'dc=exemple,dc=com'; |
|---|
| 71 | |
|---|
| 72 | // LDAP connection method |
|---|
| 73 | // There is two connection method for changing a user's LDAP password. |
|---|
| 74 | // 'user': use user credential (recommanded, require password_confirm_current=true) |
|---|
| 75 | // 'admin': use admin credential (this mode require password_ldap_adminDN and password_ldap_adminPW) |
|---|
| 76 | // Default: 'user' |
|---|
| 77 | $rcmail_config['password_ldap_method'] = 'user'; |
|---|
| 78 | |
|---|
| 79 | // LDAP Admin DN |
|---|
| 80 | // Used only in admin connection mode |
|---|
| 81 | // Default: null |
|---|
| 82 | $rcmail_config['password_ldap_adminDN'] = null; |
|---|
| 83 | |
|---|
| 84 | // LDAP Admin Password |
|---|
| 85 | // Used only in admin connection mode |
|---|
| 86 | // Default: null |
|---|
| 87 | $rcmail_config['password_ldap_adminPW'] = null; |
|---|
| 88 | |
|---|
| 89 | // LDAP user DN mask |
|---|
| 90 | // The user's DN is mandatory and as we only have his login, |
|---|
| 91 | // we need to re-create his DN using a mask |
|---|
| 92 | // '%login' will be replaced by the current roundcube user's login |
|---|
| 93 | // '%name' will be replaced by the current roundcube user's name part |
|---|
| 94 | // '%domain' will be replaced by the current roundcube user's domain part |
|---|
| 95 | // Exemple: 'uid=%login,ou=people,dc=exemple,dc=com' |
|---|
| 96 | $rcmail_config['password_ldap_userDN_mask'] = 'uid=%login,ou=people,dc=exemple,dc=com'; |
|---|
| 97 | |
|---|
| 98 | // LDAP password hash type |
|---|
| 99 | // Standard LDAP encryption type which must be one of: crypt, |
|---|
| 100 | // ext_des, md5crypt, blowfish, md5, sha, smd5, ssha, or clear. |
|---|
| 101 | // Please note that most encodage types require external libraries |
|---|
| 102 | // to be included in your PHP installation, see function hashPassword in drivers/ldap.php for more info. |
|---|
| 103 | // Default: 'crypt' |
|---|
| 104 | $rcmail_config['password_ldap_encodage'] = 'crypt'; |
|---|
| 105 | |
|---|
| 106 | // LDAP password attribute |
|---|
| 107 | // Name of the ldap's attribute used for storing user password |
|---|
| 108 | // Default: 'userPassword' |
|---|
| 109 | $rcmail_config['password_ldap_pwattr'] = 'userPassword'; |
|---|
| 110 | |
|---|
| 111 | // LDAP password force replace |
|---|
| 112 | // Force LDAP replace in cases where ACL allows only replace not read |
|---|
| 113 | // See http://pear.php.net/package/Net_LDAP2/docs/latest/Net_LDAP2/Net_LDAP2_Entry.html#methodreplace |
|---|
| 114 | // Default: true |
|---|
| 115 | $rcmail_config['password_ldap_force_replace'] = true; |
|---|
| 116 | |
|---|
| 117 | ?> |
|---|