Author Topic: Password Plugin Issue - 2015: Please help- Other topics didn't help  (Read 3596 times)

Offline shiransabar

  • Newbie
  • *
  • Posts: 3
Hi Guyz,

I have tried so many solutions looking at 20 to 30 thread on this topic. Unfortunately non of this helped me. Most of the threads (new topics) are very old. Below is my code in cpanel and config file. I know there must be something wrong with the code and i do not know where, i'm using hostmonster cpanel. I'm not an expert in coding but love to fix this for my mail. Please Help...

cPanel Code
_______________________________________
function password_save($curpas, $newpass)
{
    $rcmail = rcmail::get_instance();

    // Create a cPanel email object
    $cPanel = new emailAccount($rcmail->config->get('password_cpanel_host'),
   $rcmail->config->get('password_cpanel_username'),
   $rcmail->config->get('password_cpanel_password'),
   $rcmail->config->get('password_cpanel_port'),
   $rcmail->config->get('password_cpanel_ssl'),
   $rcmail->config->get('password_cpanel_theme'),
   $_SESSION['username'] );

    if ($cPanel->setPassword($newpass)){
        return PASSWORD_SUCCESS;
    }
    else
    {
       return PASSWORD_ERROR;
    }
}



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

// The cPanel admin username
$config['password_cpanel_username'] = 'myusername';

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

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

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

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

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
Re: Password Plugin Issue - 2015: Please help- Other topics didn't help
« Reply #1 on: February 14, 2015, 01:23:40 PM »
Update Roundcube, your using an old version of the password plugin.

Offline shiransabar

  • Newbie
  • *
  • Posts: 3
Re: Password Plugin Issue - 2015: Please help- Other topics didn't help
« Reply #2 on: February 27, 2015, 08:20:50 AM »
Hi SKaero,

I have installed the latest version and still having the same issue.

the code:

// cPanel Driver options
// --------------------------
// The cPanel Host name
$config['password_cpanel_host'] = 'domain.com'; (hosting support says to use the domain name as host)

// The cPanel admin username
$config['password_cpanel_username'] = 'myusername'; (i should use the username for my hosting cpanel right?)

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

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

and latest version does not ask for SSL or cpanel theme. is that ok? apart from this i have done below too

Install cPanel XMLAPI Client Class into Roundcube program/lib directory
or any other place in PHP include path. You can get the class from
https://raw.github.com/CpanelInc/xmlapi-php/master/xmlapi.php


still no luck please advice.

Thank you
Shiran


Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
Re: Password Plugin Issue - 2015: Please help- Other topics didn't help
« Reply #3 on: February 27, 2015, 10:46:01 PM »
Do you have any errors in your error log?

Offline shiransabar

  • Newbie
  • *
  • Posts: 3
Re: Password Plugin Issue - 2015: Please help- Other topics didn't help
« Reply #4 on: February 28, 2015, 01:21:42 AM »
Yes it says "password cannot be save"

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
Re: Password Plugin Issue - 2015: Please help- Other topics didn't help
« Reply #5 on: February 28, 2015, 03:34:14 AM »
That doesn't contain any information, there should be more info info in the actual error log.