Author Topic: E-Mail-Login not working when password plugin active!?  (Read 3699 times)

Offline Afrob

  • Newbie
  • *
  • Posts: 3
E-Mail-Login not working when password plugin active!?
« on: March 10, 2015, 03:00:12 AM »
Good morning alltogether,

roundcube is working without problems. If I activate the password plugin it is working and you can change the password. But if the password plugin is working i cannot login with email! Only the user web0pXX is working!? If i deactivate password plugin I can logon with Email...

Does somebody have the same problem and a solution for me?


Thanks Afrob

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: E-Mail-Login not working when password plugin active!?
« Reply #1 on: March 10, 2015, 03:44:36 AM »
Need more information. Are you using any other plugins? How do you have the password plugin setup? Are there any errors in the error log?

Offline Afrob

  • Newbie
  • *
  • Posts: 3
Re: E-Mail-Login not working when password plugin active!?
« Reply #2 on: March 10, 2015, 05:53:51 AM »
Hi SKaero,

where do I find the logfile? Via putty/ssh?
It's a fresh installation of roundcube on a confixx system.

Thanks Afrob

CONFIG:

Code: [Select]
<?php

/* Local configuration for Roundcube Webmail */

// ----------------------------------
// SQL DATABASE
// ----------------------------------
// Database connection string (DSN) for read+write operations
// Format (compatible with PEAR MDB2): db_provider://user:password@host/database
// Currently supported db_providers: mysql, pgsql, sqlite, mssql or sqlsrv
// For examples see http://pear.php.net/manual/en/package.database.mdb2.intro-dsn.php
// NOTE: for SQLite use absolute path: 'sqlite:////full/path/to/sqlite.db?mode=0646'
$config['db_dsnw'] = 'mysql://roundcube:XXX@localhost/roundcube';                                            //password changed in XXX

// you can define specific table (and sequence) names prefix
$config['db_prefix'] = 'rc_';

// ----------------------------------
// IMAP
// ----------------------------------
// The mail host chosen to perform the log-in.
// Leave blank to show a textbox at login, give a list of hosts
// to display a pulldown menu or set one host as string.
// To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
// Supported replacement variables:
// %n - hostname ($_SERVER['SERVER_NAME'])
// %t - hostname without the first part
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
// %s - domain name after the '@' from e-mail address provided at login screen
// For example %n = mail.domain.tld, %t = domain.tld
// WARNING: After hostname change update of mail_host column in users table is
//          required to match old user data records with the new host.
$config['default_host'] = 'localhost';

// provide an URL where a user can get support for this Roundcube installation
// PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!
$config['support_url'] = '';

// this key is used to encrypt the users imap password which is stored
// in the session record (and the client cookie if remember password is enabled).
// please provide a string of exactly 24 chars.
$config['des_key'] = 'jr63CFU=8q_o82LcDBXoRHg_';

// ----------------------------------
// PLUGINS
// ----------------------------------
// List of active plugins (in plugins/ directory)
$config['plugins'] = array();
$rcmail_config['plugins'] = array('authenticate_by_confixx_email');
$rcmail_config['plugins'] = array('password');

// the default locale setting (leave empty for auto-detection)
// RFC1766 formatted language name like en_US, de_DE, de_CH, fr_FR, pt_BR
$config['language'] = 'de_DE';



PASSWORD-PLUGIN SETTINGS:

Code: [Select]
<?php

// Password Plugin options
// -----------------------
// A driver to use for password change. Default: "sql".
// See README file for list of supported driver names.
$config['password_driver'] = 'sql';

// Determine whether current password is required to change password.
// Default: false.
$config['password_confirm_current'] = true;

// Require the new password to be a certain length.
// set to blank to allow passwords of any length
$config['password_minimum_length'] = 0;

// Require the new password to contain a letter and punctuation character
// Change to false to remove this check.
$config['password_require_nonalpha'] = false;

// Enables logging of password changes into logs/password
$config['password_log'] = false;

// Comma-separated list of login exceptions for which password change
// will be not available (no Password tab in Settings)
$config['password_login_exceptions'] = null;

// Array of hosts that support password changing. Default is NULL.
// Listed hosts will feature a Password option in Settings; others will not.
// Example:
//$config['password_hosts'] = array('mail.example.com', 'mail2.example.org');
$config['password_hosts'] = null;

// Enables saving the new password even if it matches the old password. Useful
// for upgrading the stored passwords after the encryption scheme has changed.
$config['password_force_save'] = false;


// SQL Driver options
// ------------------
// PEAR database DSN for performing the query. By default
// Roundcube DB settings are used.
$config['password_db_dsn'] = '';

// The SQL query used to change the password.
// The query can contain the following macros that will be expanded as follows:
//      %p is replaced with the plaintext new password
//      %c is replaced with the crypt version of the new password, MD5 if available
//         otherwise DES. More hash function can be enabled using the password_crypt_hash
//         configuration parameter.
//      %D is replaced with the dovecotpw-crypted version of the new password
//      %o is replaced with the password before the change
//      %n is replaced with the hashed version of the new password
//      %q is replaced with the hashed password before the change
//      %h is replaced with the imap host (from the session info)
//      %u is replaced with the username (from the session info)
//      %l is replaced with the local part of the username
//         (in case the username is an email address)
//      %d is replaced with the domain part of the username
//         (in case the username is an email address)

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: E-Mail-Login not working when password plugin active!?
« Reply #3 on: March 10, 2015, 06:31:58 AM »
Your setting your plugins completely wrong. Here is your code:
Code: [Select]
$config['plugins'] = array();
$rcmail_config['plugins'] = array('authenticate_by_confixx_email');
$rcmail_config['plugins'] = array('password');

First $rcmail_config is no longer used it should be $config. Second your overwriting the plugins array with each line, your config should look like this:
Code: [Select]
$config['plugins'] = array('authenticate_by_confixx_email', 'password');

That way both the authenticate_by_confixx_email and the password plugin will be enabled at the same time.

Offline Afrob

  • Newbie
  • *
  • Posts: 3
Re: E-Mail-Login not working when password plugin active!?
« Reply #4 on: March 10, 2015, 06:40:53 AM »
You're the BEST!  :)

Problem solved!  8)