Author Topic: Password plugin and CPanel  (Read 26430 times)

Offline taxi

  • Newbie
  • *
  • Posts: 7
Password plugin and CPanel
« Reply #30 on: January 12, 2010, 05:22:50 PM »
Quote from: skaero;24545
No they isn't anything that needs to be changed in cpanel. If your cpanel url has a http:// not a https:// then $rcmail_config['password_cpanel_ssl'] needs to be false, if that's fine post the error from your error log.


The errors log file in the log folder is blank. There is no log being created for the same.

Offline Yann

  • Jr. Member
  • **
  • Posts: 46
Password plugin and CPanel
« Reply #31 on: January 13, 2010, 09:41:53 PM »
Quote from: taxi;24538
Hi,

I am new to this. I am not able to save the password even after activating the password plugin. It says "could not save password". I have the following settings set in plugins/password/config.inc.php

Currently i have the following settings.

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

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

// 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'] = 'hostmonster';

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

I have tried entering my username, password & the host for the cPanel but did not help. What am i doing wrong?

Pls help.


Just change  'localhost'  in the line bellow:
 
  // The cPanel Host name
$rcmail_config['password_cpanel_host'] = 'localhost';

to  'hostXXX.hostmonster.com'  (XXX should be the numbers in your Cpanel ulr)

For hostmonster, you should be using the username that shows while login to hostmonster Cpanel, and the password its password (pswrd used to login to Cpanel).
That's how i set mine mine up and it works ever since like a charm.

I don't about any other hosts, but this is what you should do if you host with hostmonster after enabling the password plugin

-----------------------

$rcmail_config['password_cpanel_host'] = 'hostXXX.hostmonster.com'; (XXX = numbers in your Cpanel url)
$rcmail_config['password_cpanel_username'] = 'your cpanel username'; (username found on left while login to your Cpanel on hostmonster.com)
$rcmail_config['password_cpanel_password'] = 'your cpanel password'; (password used to login to your hostmonter.com's Cpanel)
$rcmail_config['password_cpanel_port'] = Port; (port found in your hostmonter.com's Cpanel url)
$rcmail_config['password_cpanel_theme'] = 'hostmonster'; (= hostmonster)
« Last Edit: January 17, 2010, 03:53:59 PM by Yann »

Offline x3digital

  • Newbie
  • *
  • Posts: 0
Password plugin and CPanel
« Reply #32 on: January 14, 2010, 12:07:58 PM »
Quote from: skaero;22785
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.


I am having trouble getting the password tab to show up. I believe I have made all the necessary chages to the config.inc.php file, but I am unsure what to do in the config/main.inc.php file.  Within that file I have this:

// List of active plugins (in plugins/ directory)
$rcmail_config['plugins'] = array();

I am not sure what to change it to in order to enable the plugin..?

Thanks

Offline taxi

  • Newbie
  • *
  • Posts: 7
RC working with cpanel
« Reply #33 on: January 17, 2010, 02:47:23 AM »
It is working great now.

Thanks for the help everyone.

Offline Yann

  • Jr. Member
  • **
  • Posts: 46
Password plugin and CPanel
« Reply #34 on: January 17, 2010, 03:55:30 PM »
Quote from: taxi;24641
It is working great now.

Thanks for the help everyone.


Glad we can help

Offline blair.sawler

  • Jr. Member
  • **
  • Posts: 34
Password plugin and CPanel
« Reply #35 on: January 22, 2010, 09:11:29 PM »
I have  this set up with cpanel, and have the following variables. It is still not working... just says "could not save new password". Here is what I have set. What am I missing?

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

// Determine whether current password is required to change password.
// Default: false.
$rcmail_config['password_confirm_current'] = true;

// Require the new password to be a certain length.
// set to blank to allow passwords of any length
$rcmail_config['password_minimum_length'] = 0;
 
// Require the new password to contain a letter and punctuation character
// Change to false to remove this check.
$rcmail_config['password_require_nonalpha'] = false;


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

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

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

// 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'] = 'hostmonster';

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Password plugin and CPanel
« Reply #36 on: January 23, 2010, 01:17:40 PM »
Check you CPanel username and password if they are correct check your RoundCube's error log in /logs

Offline blair.sawler

  • Jr. Member
  • **
  • Posts: 34
Password plugin and CPanel
« Reply #37 on: January 23, 2010, 01:40:37 PM »
Quote from: skaero;24808
Check you CPanel username and password if they are correct check your RoundCube's error log in /logs


Error log was not updated, so nothing written in there.

Maybe I will try uninstalling this from the server and reinstalling everything.

Frustrating as heck!

Offline Yann

  • Jr. Member
  • **
  • Posts: 46
Password plugin and CPanel
« Reply #38 on: January 24, 2010, 11:26:21 PM »
Quote from: blair.sawler;24810
Error log was not updated, so nothing written in there.

Maybe I will try uninstalling this from the server and reinstalling everything.

Frustrating as heck!


I'm not sure if you have the right port number on there. Check the port number again in your hostmonter cpanel url while login.
« Last Edit: January 24, 2010, 11:29:27 PM by Yann »

Offline RickSG

  • Newbie
  • *
  • Posts: 3
Password plugin and CPanel
« Reply #39 on: January 25, 2010, 08:21:59 AM »
You might want to look at the solution in this thread that worked for us with cpanel.

http://www.roundcubeforum.net/7-third-party-contributions/46-api-based-plugins/6019-cpanel-password-plugin-update.html

Offline nevets007

  • Newbie
  • *
  • Posts: 0
I still cant get the plugin working
« Reply #40 on: February 21, 2010, 02:51:41 PM »
Quote from: skaero;22785
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.


I dont think I'm doing this right... I tried different things and I don't even see the tab.

What do I need to write in XXX? to activate the plugin.

$rcmail_config['plugins'] = 'XXX';

Thanks for your help in advance!

Offline ataman

  • Newbie
  • *
  • Posts: 3
Password plugin and CPanel
« Reply #41 on: April 01, 2010, 07:47:26 AM »
Hi everyone!

I need some help too!

Ok my host provider is using Cpanel. He offers me a local installation of roundcube, but I don't like how it set up.

So I install a new version of roundcube 0.3.1 on a different place:
mydomain.com/round

All is working. Now I activated the password plugin , and in the settings I have a tab where the users can change their password. But when they click Save, they are receiving the error "Could not save the new password".

So I open my config.inc.php.list file and edit next:

Code: [Select]

// A driver to use for password change. Default: "sql".
// Current possibilities: 'directadmin', 'ldap', 'poppassd', 'sasl', 'sql', 'vpopmaild', 'cpanel'
$rcmail_config['password_driver'] = 'cpanel';


after that I change on the same file next lines :
Code: [Select]

// cPanel Driver options
// --------------------------
// The cPanel Host name
$rcmail_config['password_cpanel_host'] = 'https://mydomain.com';

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

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

// 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'] = 'x';


Even that I receive the same error "Could not save the new password" :mad:

Is all this is correct? Is there any other options which I must change ?
I will be happy if somebody could help me!

Thanks in advance!

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Password plugin and CPanel
« Reply #42 on: April 01, 2010, 09:34:34 AM »
You need to rename config.inc.php.dist to config.inc.php also check that your password_cpanel_theme is correct.

Offline ataman

  • Newbie
  • *
  • Posts: 3
Password plugin and CPanel
« Reply #43 on: April 01, 2010, 10:40:03 AM »
yes I renamed now the file cinfig.inc.php
Yes I'm using the correct theme it's "x"

how exactly I must write the host ? Like this ? :

https://mydomain.com:2083/frontend/x3

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Password plugin and CPanel
« Reply #44 on: April 01, 2010, 10:48:43 AM »