Roundcube's plugin password

This commit is contained in:
Axel ROGER 2012-12-05 10:27:40 +00:00
parent 8ba1047c2c
commit 75810685af
2 changed files with 6 additions and 6 deletions

View File

@ -39,7 +39,7 @@ then
. /etc/alternc/local.sh . /etc/alternc/local.sh
# Configuration template location # Configuration template location
TEMPLATE_DIR="/etc/alternc/templates" TEMPLATE_DIR="/etc/alternc/templates"
CONFIG_FILES="etc/roundcube/main.inc.php" CONFIG_FILES="etc/roundcube/main.inc.php etc/roundcube/plugins/password/config.inc.php"
cat > $SED_SCRIPT <<EOF cat > $SED_SCRIPT <<EOF
s\\%%ALTERNC_LOC%%\\$ALTERNC_LOC\\; s\\%%ALTERNC_LOC%%\\$ALTERNC_LOC\\;

View File

@ -12,21 +12,21 @@ $rcmail_config['password_confirm_current'] = true;
// Require the new password to be a certain length. // Require the new password to be a certain length.
// set to blank to allow passwords of any length // set to blank to allow passwords of any length
$rcmail_config['password_minimum_length'] = 0; $rcmail_config['password_minimum_length'] = 8;
// Require the new password to contain a letter and punctuation character // Require the new password to contain a letter and punctuation character
// Change to false to remove this check. // Change to false to remove this check.
$rcmail_config['password_require_nonalpha'] = false; $rcmail_config['password_require_nonalpha'] = true;
// Enables logging of password changes into logs/password // Enables logging of password changes into logs/password
$rcmail_config['password_log'] = false; $rcmail_config['password_log'] = true;
// SQL Driver options // SQL Driver options
// ------------------ // ------------------
// PEAR database DSN for performing the query. By default // PEAR database DSN for performing the query. By default
// Roundcube DB settings are used. // Roundcube DB settings are used.
$rcmail_config['password_db_dsn'] = ''; $rcmail_config['password_db_dsn'] = 'mysql://%%roundcube-login%%:%%roundcube-password%%@%%dbhost%%/%%dbname%%';
// The SQL query used to change the password. // The SQL query used to change the password.
// The query can contain the following macros that will be expanded as follows: // The query can contain the following macros that will be expanded as follows:
@ -45,7 +45,7 @@ $rcmail_config['password_db_dsn'] = '';
// (in case the username is an email address) // (in case the username is an email address)
// Escaping of macros is handled by this module. // Escaping of macros is handled by this module.
// Default: "SELECT update_passwd(%c, %u)" // Default: "SELECT update_passwd(%c, %u)"
$rcmail_config['password_query'] = 'SELECT update_passwd(%c, %u)'; $rcmail_config['password_query'] = 'UPDATE address a LEFT JOIN domaines d ON d.id=a.domain_id SET a.password=%c WHERE d.domaine=%d AND address=%l';
// By default domains in variables are using unicode. // By default domains in variables are using unicode.
// Enable this option to use punycoded names // Enable this option to use punycoded names