Roundcube/Plugin/password: Unterschied zwischen den Versionen
Erscheinungsbild
Keine Bearbeitungszusammenfassung |
|||
| (3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 9: | Zeile 9: | ||
== Beschreibung == | == Beschreibung == | ||
* shipped with Roundcube | |||
* You can use either <code>vpopmaild</code> or <code>sql</code> driver | |||
This plugin provides some driver to enforce the password strenght and I tryied <code>zxcvbn</code> with no success | This plugin provides some driver to enforce the password strenght and I tryied <code>zxcvbn</code> with no success | ||
| Zeile 16: | Zeile 17: | ||
=== Driver === | === Driver === | ||
==== | ==== vpopmaild ==== | ||
# cd plugins/password | # cd plugins/password | ||
# cp -p config.inc.php.dist config.inc.php | # cp -p config.inc.php.dist config.inc.php | ||
| Zeile 36: | Zeile 37: | ||
Remember to replace <mail-server-IP> with the IP address of your MTA (generally localhost) | Remember to replace <mail-server-IP> with the IP address of your MTA (generally localhost) | ||
==== | ==== sql ==== | ||
// We have MYSQL for our VPOPMAIL DATABASE so we use the sql driver | // We have MYSQL for our VPOPMAIL DATABASE so we use the sql driver | ||
$config['password_driver'] = 'sql'; | $config['password_driver'] = 'sql'; | ||
| Zeile 93: | Zeile 94: | ||
</div> | </div> | ||
---- | ---- | ||
{{Special:PrefixIndex/Roundcube/Plugin | {{Special:PrefixIndex/Roundcube/Plugin}} | ||
=== Dokumentation === | === Dokumentation === | ||
Aktuelle Version vom 7. Juli 2026, 12:03 Uhr
Roundcube/Plugin/password
Beschreibung
- shipped with Roundcube
- You can use either
vpopmaildorsqldriver
This plugin provides some driver to enforce the password strenght and I tryied zxcvbn with no success
- Fortunately Tony Fung explained in a comment how to patch the plugin to use
cracklibas a password strenght library - If you want to use this approach read below
Driver
vpopmaild
# cd plugins/password # cp -p config.inc.php.dist config.inc.php # nano config.inc.php $config['password_driver'] = 'vpopmaild'; // Determine whether the current password is required to change the password // Default: false. $config['password_confirm_current'] = true; // vpopmaild Driver options // ----------------------- // The host which changes the password $config['password_vpopmaild_host'] = '<mail-server-IP>'; // TCP port used for vpopmaild connections $config['password_vpopmaild_port'] = 89;
Remember to replace <mail-server-IP> with the IP address of your MTA (generally localhost)
sql
// We have MYSQL for our VPOPMAIL DATABASE so we use the sql driver
$config['password_driver'] = 'sql';
// Determine whether current password is required to change password.
// Default: false.
$config['password_confirm_current'] = true;
// SQL Driver options
// ------------------
// PEAR database DSN for performing the query. By default
// Roundcube DB settings are used.
// We have a VPOPMAIL DB and the database and table name is vpopmail
$config['password_db_dsn'] =
'mysql://vpopmail:YOURPASSWORDGOESHERE@<mysql-IP>/vpopmail';
// The username and domainname are different columns JDT
$config['password_query'] = 'UPDATE vpopmail set
pw_passwd=ENCRYPT(%p,concat("$1$",right(md5(rand()),8),"$")),
pw_clear_passwd=%p where pw_name=%l and pw_domain=%d';
// VPOPMAIL uses salted hash so md5 JDT
$config['password_crypt_hash'] = 'md5';
Here <mysql-IP> is the IP address of your sql server (put localhost if qmail and sql servers share the same IP)
Cracklib
- Cracklib patch
You may want to patch the plugin to gain cracklib's security benefits (thanks to Tony Fung for the patch), so that both roundcube and qmailadmin share the same password check system:
cd /var/www/roundcube wget https://notes.sagredo.eu/files/qmail/patches/roundcube/cracklib-roundcube_pwd_plugin.patch patch -p1 < cracklib-roundcube_pwd_plugin.patch
Be aware that the cracklib library must be installed as already explained in the qmailadmin's page. You also have to remove exec from disable_functions in your php.ini
Konfiguration
Dateien
| Datei | Beschreibung |
|---|---|
Anhang
Siehe auch
- Roundcube/Plugin
- Roundcube/Plugin/Html5 notifier
- Roundcube/Plugin/ISPConfig
- Roundcube/Plugin/autologon
- Roundcube/Plugin/carddav
- Roundcube/Plugin/composer
- Roundcube/Plugin/contextmenu
- Roundcube/Plugin/enigma
- Roundcube/Plugin/ispconfig3 wblist
- Roundcube/Plugin/jqueryui
- Roundcube/Plugin/logout redirect
- Roundcube/Plugin/managesieve
- Roundcube/Plugin/markasjunk
- Roundcube/Plugin/newmail notifier
- Roundcube/Plugin/password
- Roundcube/Plugin/persistent login
- Roundcube/Plugin/rcguard
- Roundcube/Plugin/sauserprefs
- Roundcube/Plugin/swipe
- Roundcube/Plugin/zipdownload
Dokumentation
Links
Projekt
Weblinks