Roundcube Community Forum

 

Roundcube 0.8.1 - password plugin

Started by dieresi, August 07, 2013, 09:04:31 PM

Previous topic - Next topic

dieresi

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.

$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

SKaero

First RoundCube 0.8.1 is out of date you really should upgrade. What is it doing when you try to save the password?

dieresi

Hello,

it says it can't save password.

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

SKaero

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.

mwalabenn

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.

dieresi

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.

SKaero

Try adding the following line:

write_log('password', 'Response:'. $response);

Under the following line in the cpanel.php file:
$response = $this->HTTP->getData('mail/dopasswdpop.html', $data);
Then post the password log.

dieresi

[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>


SKaero

Interesting that you most likely mean its not authenticating correctly, you using your cPanel username and password, right?

dieresi

it says it cannot save password...

Authentication fields are right

dieresi

If I try to use my main domain instead of username, it gives me the following log:


[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>



SKaero

Interesting, so it is authenticating correctly. Is there anyway you can give me test access to RoundCube and cPanel?

dieresi

Hello,
unfortunately I have only admin access to my shared hosting cpanel..

dieresi

is there some Bluehost user here that make this plugin works?