Jump to content

Cpanel Reseller Bug


Michael

Recommended Posts

I'm sure this is a bug with the module but I can't be 100% certain however this is my video.

 

With root + root remote key = Works

 

With reseller username + reseller remote key = Fails

 

Video: http://screencast.com/t/CpW4qqfpmvEV

 

OS: CloudLinux

 

PHP: 5.4.24

 

MySQL: 5.5.35-cll

 

Apache: 2.2.26

 

cPanel Module: 1.1.0

Link to comment
Share on other sites

Sorry mate didn't spot a reply, this is what they have on the default feature list (A reseller can do):

Account Information
List Accounts
View Account Bandwidth Usage

Account Management
(Un)Suspend
Change Passwords
Create
Edit MX Entries
SSL CSR/CRT Generator
SSL Certificate Purchase
SSL Site Management
Terminate
Upgrade/Downgrade

Dns
Add
Edit
Remove

Packages
Add/Remove
Edit

Troubleshooting
Troubleshoot Mail Delivery

cPanel Management
News Modification
 

Link to comment
Share on other sites

The "List Accounts" is what is needed to validate the connection, so it sounds like the connection details are simply not correct, or that privilege is not available via the API. You may want to take a look at their Reseller privileges from the root account as described in cPanel's documentation.

 

If you think the credentials are correct, you can update the module to disable the connection validation check, and see if you can create cPanel packages/services anyway. To do this, update /components/modules/cpanel/cpanel.php (line 1594 for v3.1.0 of Blesta) and change:

'valid_connection'=>array(
	'rule'=>array(array($this, "validateConnection"), $vars['host_name'], $vars['user_name'], $vars['use_ssl'], &$vars['account_count']),
	'message'=>Language::_("Cpanel.!error.remote_key_valid_connection", true)
)

to:

/*
'valid_connection'=>array(
	'rule'=>array(array($this, "validateConnection"), $vars['host_name'], $vars['user_name'], $vars['use_ssl'], $vars['account_count']),
	'message'=>Language::_("Cpanel.!error.remote_key_valid_connection", true)
)
*/
Link to comment
Share on other sites

  • 2 weeks later...

Mike, have you tried removing the limit on the total number of accounts that the reseller can create?

 

I am the only reseller on my VPS and I am successfully using my reseller account with Blesta. I don't have a limit on the total number of accounts that the reseller can create. Comparing my settings with yours, this is what else is different:

 

dns: park
allow the reseller to use all global packages
allow creation of packages with parked domains
allow creation of packages with unlimited bandwidth
allow creation of packages with unlimited diskspace
allow creation of packages with a dedicated ip
view server information
view server status
resync ftp passwords
super privs:
Account Modification
Bandwidth Limiting Modification 
Quota Modification 
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...