Author Topic: Roundcube 1.0.2 with plugin change password  (Read 28310 times)

Offline amjad

  • Newbie
  • *
  • Posts: 8
Roundcube 1.0.2 with plugin change password
« on: September 11, 2014, 02:34:44 AM »
Hello,

I need help with plugin change password , i'm using Roundcube Webmail 1.0.2 & cPanel Version 11.44.1

I have try with cPanel Driver options & sql Driver options but both doesn't work & get error An error occurred! ,Could not save new password


// cPanel Driver options
// --------------------------
// The cPanel Host name
$config['password_cpanel_host'] = 'xxxxx.com';

// The cPanel admin username
$config['password_cpanel_username'] = 'user of cpanel';

// The cPanel admin password
$config['password_cpanel_password'] = 'password of cpanel';

// The cPanel port to use
$config['password_cpanel_port'] = 2082;


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

// The SQL query used to change the password.

// Default: "SELECT update_passwd(%c, %u)"
$config['password_query'] = 'SELECT update_passwd(%c, %u)';

$config['password_crypt_hash'] = 'md5';
$config['password_idn_ascii'] = false;
$config['password_dovecotpw_method'] = 'CRAM-MD5';
$config['password_dovecotpw_with_method'] = false;
$config['password_hash_algorithm'] = 'sha1';
$config['password_hash_base64'] = false;

----------------------------------------------------------
wish to help to activation options of change password with any driver options

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: Roundcube 1.0.2 with plugin change password
« Reply #1 on: September 11, 2014, 04:33:43 AM »
Did you follow the steps in the README in the password plugin directory?

Offline amjad

  • Newbie
  • *
  • Posts: 8
Re: Roundcube 1.0.2 with plugin change password
« Reply #2 on: September 11, 2014, 07:16:36 PM »
Did you follow the steps in the README in the password plugin directory?

Yes , I did


Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: Roundcube 1.0.2 with plugin change password
« Reply #3 on: September 11, 2014, 07:28:46 PM »
OK then what is in the error log?

Offline amjad

  • Newbie
  • *
  • Posts: 8
Re: Roundcube 1.0.2 with plugin change password
« Reply #4 on: September 12, 2014, 03:06:20 PM »
Message of error is "Could not save new password." when I try to change the Password

Offline amjad

  • Newbie
  • *
  • Posts: 8
Re: Roundcube 1.0.2 with plugin change password
« Reply #5 on: September 13, 2014, 03:30:21 AM »
Error log as below :

[13-Sep-2014 02:26:02 -0500]: DB Error: [1305] FUNCTION db_mail.update_passwd does not exist (SQL Query: SELECT update_passwd('xxx', 'username@mydomain.com')) in /home/acco/public_html/mail/program/lib/Roundcube/rcube_db.php on line 467 (POST /?_task=settings&_action=plugin.password-save?_task=&_action=)
« Last Edit: September 13, 2014, 03:47:28 AM by amjad »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: Roundcube 1.0.2 with plugin change password
« Reply #6 on: September 13, 2014, 09:29:27 AM »
Its trying to use the sql driver, if your server is using cPanel you need to use the cPanel driver.

Offline amjad

  • Newbie
  • *
  • Posts: 8
Re: Roundcube 1.0.2 with plugin change password
« Reply #7 on: September 14, 2014, 03:42:34 AM »
I am grateful to you for your help

I have try with cPanel driver option but it doesn't work also , and nothing in Error log , But I get same error ("Could not save new password.") when I try to change password .

Information of cPanel Driver options as below :
Quote
$config['password_cpanel_host'] = 'xxxxx.com';
$config['password_cpanel_username'] = 'user_cpanel';
$config['password_cpanel_password'] = 'password_cpanel';
$config['password_cpanel_port'] = 2082;


I have also Installed cPanel XMLAPI Client Class into Roundcube program/lib directory

Information of xmlapi.php as below :
Quote
    // should debugging statements be printed?
    private $debug         = false;

    // The host to connect to
    private $host            =   'xxxxx.com';

    // the port to connect to
    private $port            =   '2082';

    // should be the literal strings http or https
    private $protocol      =   'http';

    // output that should be given by the xml-api
    private $output      =   'simplexml';

    // literal strings hash or password
    private $auth_type    = null;

    //  the actual password or hash
    private $auth          = null;

    // username to authenticate as
    private $user            = null;

    // The HTTP Client to use
    private $http_client      = 'curl';


Note : The old Roundcube Version 0.8.1 which was working with cPanel Driver options it has some difference with the new Roundcube 1.0.2 as below :

1- It was have two config extra
Quote
$rcmail_config['password_cpanel_ssl'] = false;
$rcmail_config['password_cpanel_theme'] = 'x3'; .

2- It wasn't need to Installe cPanel XMLAPI Client Class .

Now the plugin doesn't work in Roundcube 1.0.2 , Please help me to make it work
 :'(
« Last Edit: September 14, 2014, 03:46:39 AM by amjad »

Offline amjad

  • Newbie
  • *
  • Posts: 8
Re: Roundcube 1.0.2 with plugin change password
« Reply #8 on: September 17, 2014, 02:36:50 AM »
Any help please

Can anyone help me in my issues please  :'(

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: Roundcube 1.0.2 with plugin change password
« Reply #9 on: September 17, 2014, 04:34:50 PM »
There should be an error log somewhere that would have useful information in it. Without an error log I can't tell anything else without having access to the server.

Offline amjad

  • Newbie
  • *
  • Posts: 8
Re: Roundcube 1.0.2 with plugin change password
« Reply #10 on: September 18, 2014, 03:11:23 AM »
When I use cPanel driver options it doesn't wrote any error in logs errors of roundcube , suport of hostgator told me I should to use sql driver options , So can u help me to correction my config  of sql driver options please 

My config of sql driver options
Quote
// PEAR database DSN for performing the query. By default
// Roundcube DB settings are used.
$config['password_db_dsn'] = 'mysql://username:password@localhost/database';

// The SQL query used to change the password.

// Default: "SELECT update_passwd(%c, %u)"
$config['password_query'] = 'SELECT update_passwd(%c, %u)';

$config['password_crypt_hash'] = 'md5';
$config['password_idn_ascii'] = false;
$config['password_dovecotpw_method'] = 'CRAM-MD5';
$config['password_dovecotpw_with_method'] = false;
$config['password_hash_algorithm'] = 'sha1';
$config['password_hash_base64'] = false;

The error in logs errors is
Quote
DB Error: [1305] FUNCTION dbmail.update_passwd does not exist (SQL Query: SELECT update_passwd('xxxx', 'user@domain.com')) in /home/projects/public_html/x_mail/lib/Roundcube/rcube_db.php on line 467 (POST /?_task=settings&_action=plugin.password-save?_task=&_action=)

I'm tired with this issue
« Last Edit: September 18, 2014, 04:42:11 AM by amjad »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: Roundcube 1.0.2 with plugin change password
« Reply #11 on: September 18, 2014, 12:40:39 PM »
If your hosted on HostGator then you can't use the SQL option you have to use the cPanel option. Also if I had to guess you need to set the protocol to https but I can't say for sure without being able to look at it myself.

Offline amjad

  • Newbie
  • *
  • Posts: 8
Re: Roundcube 1.0.2 with plugin change password
« Reply #12 on: September 21, 2014, 02:48:39 AM »
Thanks for ur help

I will try again with cPanel driver options and will ask host supports to check it

Offline ralfie

  • Newbie
  • *
  • Posts: 2
Re: Roundcube 1.0.2 with plugin change password
« Reply #13 on: February 07, 2015, 10:57:12 AM »
Hi i dont know if you got the solution already, but if you still need, I think i have solution for that

Offline ralfie

  • Newbie
  • *
  • Posts: 2
Re: Roundcube 1.0.2 with plugin change password
« Reply #14 on: February 10, 2015, 11:11:24 AM »
Yes I have the same problem that you had before. here some informations

1. I hosted on bluehost ( i do not know where did you host yours)
2. using cpanel
3. I installed the new version of roundcube 1.0.5
4. I used plugin_manager from myroundcube.com

before I have a problem in changing and saving a new password, it went to white blank page. To make work i did like this.

1. registed the password plugin in the config.inc.php it is located in config folder in order to activate it. it looks like this:

$config['plugins'] = array('plugin_manager','password');


2. I was not using the cpanel driver ( plugins/password/drivers/cpanel.php )  from the roundcube version 1.0.5. which is @version 3.0 * @author Christian Chech <christian-chechfr>
 But i still used the previous on from the version 0.8 or 0.9 that is the @version 2.0 * @author Fulvio Venturelli <fulvio@venturelli.org>

I just simple replace it with the version 2.0


3. edit the config.inc.php  (" located in plugins/password/ ")
 change the plugin option from sql (default) to cpanel like below

$config['password_driver'] = 'cpanel';


then scroll down find the cpanel driver option,it looks like this:



// cPanel Driver options
// --------------------------
// The cPanel Host name
$config['password_cpanel_host'] = 'box804.bluehost.com';  <---this host cpanel of bluehost

// The cPanel admin username
$config['password_cpanel_username'] = 'xxxxxxx';   <------------your Cpanel's username

// The cPanel admin password
$config['password_cpanel_password'] = 'xxxxxx';<---------------------your password

// The cPanel port to use
$config['password_cpanel_port'] = 2083; <--------the port that using to access your cpanel

in the new configuration in roundcube version 1.0.5 its end here, but i was still adding the two lines just like in the previous version as below:
-------------------------------------------------------------------------------------------------------

the previous version was look like this


// Using ssl for cPanel connections?
$rcmail_config['password_cpanel_ssl'] = true;

// The cPanel theme in use
$rcmail_config['password_cpanel_theme'] = 'rsx3';



BUT I CHANGE to THIS (change the $rcmail_config to $config)


// Using ssl for cPanel connections?
$config['password_cpanel_ssl'] = true; 

// The cPanel theme in use
$config['password_cpanel_theme'] = 'rsx3';


I don not know if it gonna work with you but mine is working just find