Jump to content

Recommended Posts

Posted

Have you been able to check whether the reseller account has privileges for "listaccts" via the API? Resellers need to be granted some privileges in order to run commands.

Posted

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
 

Posted

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)
)
*/
Posted

That fixed it mate and showed the correct packages when creating a package.

 

What fixed it? Fixing privileges or disabling the validation check by updating the cPanel module code?

Posted

What fixed it? Fixing privileges or disabling the validation check by updating the cPanel module code?

 

disabling the validation check, allowed the server to be added :).

Posted

From your video, it looks like they should have access to List Accounts, but I'm not familiar with cPanel's privilege settings. Paul may have more insight.

Posted

From your video, it looks like they should have access to List Accounts, but I'm not familiar with cPanel's privilege settings. Paul may have more insight.

 

Haha cPanel has a mind of it's own when it wants to mate.

  • 2 weeks later...
Posted

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 

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