Author Topic: Roundcube 0.8.1 - password plugin  (Read 10439 times)

Offline dieresi

  • Newbie
  • *
  • Posts: 9
Roundcube 0.8.1 - password plugin
« on: August 07, 2013, 09:04:31 PM »
Hello,
I installed Roundcube 0.8.1 in my Bluehost shared hosting; it's almost 3 hours I try every solutions found on web, without success.

NO error logs.

Code: [Select]
$rcmail_config['password_driver'] = 'cpanel';

[...]

// The cPanel Host name
$rcmail_config['password_cpanel_host'] = 'box871.bluehost.com';

// The cPanel admin username
$rcmail_config['password_cpanel_username'] = 'name';

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

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

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

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

Thanks for your support

Online SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: Roundcube 0.8.1 - password plugin
« Reply #1 on: August 08, 2013, 02:02:44 AM »
First RoundCube 0.8.1 is out of date you really should upgrade. What is it doing when you try to save the password?

Offline dieresi

  • Newbie
  • *
  • Posts: 9
Re: Roundcube 0.8.1 - password plugin
« Reply #2 on: August 08, 2013, 04:49:49 AM »
Hello,

it says it can't save password.

I tried with original and custom cpanel driver, force HTTPS activated, different hosts, different ports...

Online SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: Roundcube 0.8.1 - password plugin
« Reply #3 on: August 08, 2013, 11:46:49 AM »
There is another user http://www.roundcubeforum.net/index.php/topic,13942.html with the same problem also at BlueHost, your settings look to be correct so I'm wondering if BlueHost is blocking local connections to cPanel.

Offline mwalabenn

  • Jr. Member
  • **
  • Posts: 12
Re: Roundcube 0.8.1 - password plugin
« Reply #4 on: August 08, 2013, 04:25:51 PM »
Hey mate,

i also had the same problem earlier. I did everything right and was wondering what the problem could have been.

Now, apparently I was providing a very weak password that is why it 'Could not save new password'

try giving it a more complex password when changing. As for the port, stick to 2083.

Cheerz.

Offline dieresi

  • Newbie
  • *
  • Posts: 9
Re: Roundcube 0.8.1 - password plugin
« Reply #5 on: August 08, 2013, 06:15:35 PM »
I installed the latest roundcube version (0.9.2), still the same problem.

I tried different and complex password, without sucess.
It only says "correctly saved" while I set the same password I had before.

Online SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: Roundcube 0.8.1 - password plugin
« Reply #6 on: August 08, 2013, 06:35:52 PM »
Try adding the following line:
Code: [Select]
write_log('password', 'Response:'. $response);
Under the following line in the cpanel.php file:
Code: [Select]
$response = $this->HTTP->getData('mail/dopasswdpop.html', $data);Then post the password log.

Offline dieresi

  • Newbie
  • *
  • Posts: 9
Re: Roundcube 0.8.1 - password plugin
« Reply #7 on: August 08, 2013, 06:53:46 PM »
Code: [Select]
[08-Aug-2013 16:50:59 -0600]: Response:HTTP/1.1 301 Moved

Server: cpsrvd/11.32.6.17

Content-length: 116

Location: https://box871.bluehost.com:2083

Content-type: text/html; charset="utf-8"



<html><head><META HTTP-EQUIV="refresh" CONTENT="0;URL=https://box871.bluehost.com:2083"></head><body></body></html>

Offline dieresi

  • Newbie
  • *
  • Posts: 9
Re: Roundcube 0.8.1 - password plugin
« Reply #8 on: August 08, 2013, 06:59:15 PM »

Online SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: Roundcube 0.8.1 - password plugin
« Reply #9 on: August 08, 2013, 07:16:42 PM »
Interesting that you most likely mean its not authenticating correctly, you using your cPanel username and password, right?

Offline dieresi

  • Newbie
  • *
  • Posts: 9
Re: Roundcube 0.8.1 - password plugin
« Reply #10 on: August 08, 2013, 07:22:46 PM »
it says it cannot save password...

Authentication fields are right

Offline dieresi

  • Newbie
  • *
  • Posts: 9
Re: Roundcube 0.8.1 - password plugin
« Reply #11 on: August 08, 2013, 07:42:36 PM »
If I try to use my main domain instead of username, it gives me the following log:


Code: [Select]
[08-Aug-2013 17:35:10 -0600]: Response:HTTP/1.1 401 Access Denied

Set-Cookie: cprelogin=no; HttpOnly; path=/; port=2083; secure

Set-Cookie: cpsession=%3a3FWsp9rV986NYLV5U6EHRAg7PDnwjMCCKIqBg_hsTlkwZeVkLbkJGDlJsbkA36Xs; HttpOnly; path=/; port=2083; secure

Server: cpsrvd/11.32.6.17

Content-type: text/html; charset="utf-8"

Connection: close

Date: Thu, 08 Aug 2013 23:35:10 GMT

Content-Length: 2513



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="shortcut icon" href="/cPanel_magic_revision_1327268416/unprotected/cpanel/favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>cPanel&reg; 11</title>
<link rel="stylesheet" href="/cPanel_magic_revision_1355195112/unprotected/cpanel/style_optimized.css" type="text/css" />
<!--[if IE]>
<style type="text/css">
#mid{
height:300px;
}
</style>
<![endif]-->
<meta name="robots" content="noindex, nofollow" />
</head>
<body>
<div id="wrap">
<div id="top"></div>
<div id="mid">
<div id="content-wrap" align="center">

<script type="text/javascript">
  var url = "https://www.bluehost.com/cgi/account/cpanel";
  var query = window.location.search;
  var c = query.indexOf("failurl=");
  if (c >= 0) {
    var s = query.substring(c + 8);
    if (s.indexOf("&") >= 1)
      s = s.substring(0, s.indexOf("&"));
    url = unescape(s);
  }
  window.location.href = url;
</script>
<noscript>
  <meta http-equiv="refresh" content="0;url=http://www.bluehost.com/cgi/account/cpanel">
</noscript>
<form action="/login/" method="post" >
    <input type="hidden" name="login_theme" value="cpanel" />
    <table width="200px" class="login" cellpadding="0" cellspacing="0">
        <tr>
            <td align="left" colspan="2"><strong>Login</strong></td>
        </tr>
        <tr>
            <td class="login_lines">Username&nbsp;</td>
            <td class="login_lines"><input autofocus="autofocus" id="user" type="text" name="user" size="16" tabindex="1" /></td>
        </tr>
        <tr class="row2">
            <td class="login_lines">Password&nbsp;</td>
            <td class="login_lines"><input id="pass" type="password" name="pass" size="16" tabindex="2" /></td>
        </tr>
        <tr>
            <td colspan="2" style="text-align: center"><input type="submit" value="Login" class="input-button" tabindex="3" /></td>
        </tr>
    </table>
    <input type="hidden" name="goto_uri" value="/frontend/bluehost/mail/dopasswdpop.html?email=[b]MAILADDRESS[/b]&amp;domain=[b]DOMAIN[/b]&amp;password=[b]NEW PASSWORD[/b]" />
</form>
<script type="text/javascript">
//<![CDATA[
/* Must not include external javascript -jnk 06.20.09 */
    document.getElementById("user").focus();
//]]>
</script>
</div>
</div>
<div id="bot">
</div>
&copy; cPanel, Inc. 2011
</div>
</body>
</html>


Online SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: Roundcube 0.8.1 - password plugin
« Reply #12 on: August 08, 2013, 09:04:42 PM »
Interesting, so it is authenticating correctly. Is there anyway you can give me test access to RoundCube and cPanel?

Offline dieresi

  • Newbie
  • *
  • Posts: 9
Re: Roundcube 0.8.1 - password plugin
« Reply #13 on: August 09, 2013, 09:53:52 AM »
Hello,
unfortunately I have only admin access to my shared hosting cpanel..

Offline dieresi

  • Newbie
  • *
  • Posts: 9
Re: Roundcube 0.8.1 and Bluehost - password plugin
« Reply #14 on: August 20, 2013, 05:38:20 PM »
is there some Bluehost user here that make this plugin works?