Roundcube Community Forum

 

Password plugin and CPanel

Started by beatnik, November 02, 2009, 06:48:13 PM

Previous topic - Next topic

beatnik

Has anyone gotten the password plugin for version 0.3.x to work with CPanel?  There are not a lot of options to set for CPanel within the configuration file, but I cannot get it to work!  (I've sent a message to the helpdesk of my hosting service, too, but thought I'd post a question here, too.)

I used to have the CPanel add-on by Nemesis02 installed in my pre-0.2.2 version of Roundcube, and it worked wonderfully.  Since updating to 0.2.2 for security reasons, my users have missed the ability to easily change their password.  I had high hopes to be able to re-implement this capability by using version 0.3.x and the API plugins.

Thanks in advance...

SKaero

In RoundCube 3.1 a cPanel driver was added to the password plugin. Are there any errors, and what version of CPanel do you have?

beatnik

My host has CPanel 11... perhaps that's the issue?  I see the plugin specifies 'x' in the configuration; I tried it with 'x', 'xi', 'XI', and '11' with all the same results - I get an error statement "Could not save new password" when I try and change my password from within the Settings menu of Roundcube.

I did hear back from my host and they verified I am using the correct information for line 165 (password_cpanel_host), line 174 (password_cpanel_port) and line 177 (password_cpanel_ssl TRUE or FALSE) within the config.inc.php file of the RC 0.3.1 password plug-in.

SKaero

That most likely your problem the default theme in CPanel 11 is x3. Here is how the url is setup: http://[B]Host[/B].[B]tdl[/B]:[B]Port[/B]/frontend/[B]Theme[/B]/index.html
http://example.com:2082/frontend/x3/index.html

beatnik

My front-end says the theme is cPanel X v2.5.0... how would that be shown?  'x2' and 'x2.5.0' don't work... I tried 'x3' before realizing the theme wasn't x3.

SKaero


beatnik

your question made me understand!  the URL contained the theme designation, which was "lp" (for Lunarpages, my host) - the plugin now works!  thank you so much....

Yann

#7
Quote from: skaero;22741That most likely your problem the default theme in CPanel 11 is x3. Here is how the url is setup: http://[B]Host[/B].[B]tdl[/B]:[B]Port[/B]/frontend/[B]Theme[/B]/index.html
http://example.com:2082/frontend/x3/index.html

where within the password config file do I have to set this up? I tried everything but cannot see anything in server settings to change password. I know I'm missing something but I just could not figure it out. Since  Nemesis02 plugin, I did not upgrade RC because I'm afraid of loosing the ability to change password. I have RC intalled on hosted account (hostmonster). Any help!

SKaero

You would set the theme in the plugins/password/config.inc.php file on the $rcmail_config['password_cpanel_theme'] line. To enable the plugin add it to the $rcmail_config['plugins'] line in the config/main.inc.php.

Yann

#9
Quote from: skaero;22785You would set the theme in the plugins/password/config.inc.php file on the $rcmail_config['password_cpanel_theme'] line. To enable the plugin add it to the $rcmail_config['plugins'] line in the config/main.inc.php.

wow, the tab shows. I figured it out, took me about an hour to understand it though. :) . The bad news is I could not save the new password, it gives me an error message that "Could not save new password". I double checked the cPanel Driver options, all the information are correct. What am I missing?

SKaero

Did you set the $rcmail_config['password_driver'] to cpanel in plugins/password/config.inc.php?

Yann

#11
Quote from: skaero;22787Did you set the $rcmail_config['password_driver'] to cpanel in plugins/password/config.inc.php?

yes I did. What the problem was, I just changed this:

// The cPanel theme in use
$rcmail_config['password_cpanel_theme'] = 'x';       ----------> the 'x' to 'hostmonster' and it worked :). Thanks

vixus

// cPanel Driver options
// --------------------------
// The cPanel Host name
$rcmail_config['password_cpanel_host'] = 'xxx';


// XIMSS (Communigate server) Driver options
// -----------------------------------------
// Host name of the Communigate server
$rcmail_config['password_ximss_host'] = 'xxx';


what should i type in these two options ?

beatnik

#13
Vixis,

If your host is using CPanel, you shouldn't have to fill in anything for the second lines of code you listed (for the XIMSS Communigate Server Driver).  For the first lines of code (CPanel Driver), look at the URL that is displayed when you are logged into your host's CPanel.  It should look something like this (my thanks to SKaero!):

'http://xxx:Port/frontend/Theme/index.html

where 'xxx' is what you place in the line:

$rcmail_config['password_cpanel_host'] = 'xxx';

Make sure you include the quotes!  Also, make note of how the theme is shown.  You will need to use the theme designation in the line below, in place of the x.  (This is what I was messing up!)

$rcmail_config['password_cpanel_theme'] = 'x';

I hope that helps!

vixus

Quote from: beatnik;22902Vixis,

If your host is using CPanel, you shouldn't have to fill in anything for the second lines of code you listed (for the XIMSS Communigate Server Driver).  For the first lines of code (CPanel Driver), look at the URL that is displayed when you are logged into your host's CPanel.  It should look something like this (my thanks to SKaero!):

'http://xxx:Port/frontend/Theme/index.html

where 'xxx' is what you place in the line:

$rcmail_config['password_cpanel_host'] = 'xxx';

Make sure you include the quotes!  Also, make note of how the theme is shown.  You will need to use the theme designation in the line below, in place of the x.  (This is what I was messing up!)

$rcmail_config['password_cpanel_theme'] = 'x';

I hope that helps!

thank you beatnik

it work now after i changed the value

$rcmail_config['password_cpanel_ssl'] = true;
 to
$rcmail_config['password_cpanel_ssl'] = false;