Michael Posted February 2, 2014 Report Posted February 2, 2014 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 Quote
Tyson Posted February 3, 2014 Report Posted February 3, 2014 Thanks, I've added this as CORE-1031 to look into it. Michael 1 Quote
Tyson Posted February 4, 2014 Report Posted February 4, 2014 Do you know whether the reseller account has privileges to call "listaccts" via the API? Quote
Tyson Posted February 11, 2014 Report Posted February 11, 2014 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. Quote
Michael Posted February 11, 2014 Author Report Posted February 11, 2014 Sorry mate didn't spot a reply, this is what they have on the default feature list (A reseller can do):Account InformationList AccountsView Account Bandwidth UsageAccount Management(Un)SuspendChange PasswordsCreateEdit MX EntriesSSL CSR/CRT GeneratorSSL Certificate PurchaseSSL Site ManagementTerminateUpgrade/DowngradeDnsAddEditRemovePackagesAdd/RemoveEditTroubleshootingTroubleshoot Mail DeliverycPanel ManagementNews Modification Quote
Tyson Posted February 11, 2014 Report Posted February 11, 2014 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) ) */ Michael 1 Quote
Michael Posted February 12, 2014 Author Report Posted February 12, 2014 That fixed it mate and showed the correct packages when creating a package. Quote
Tyson Posted February 12, 2014 Report Posted February 12, 2014 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? Quote
Michael Posted February 12, 2014 Author Report Posted February 12, 2014 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 . Quote
Tyson Posted February 12, 2014 Report Posted February 12, 2014 Sounds like the reseller doesn't have sufficient privileges for "listaccts", then. However, we may be able to update the module to not require it. Quote
Michael Posted February 12, 2014 Author Report Posted February 12, 2014 I wonder mate if that's causing the reseller issues? Because this is what we've got in the reseller center for the client: http://screencast.com/t/bcrELn6dw Quote
Tyson Posted February 12, 2014 Report Posted February 12, 2014 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. Quote
Michael Posted February 12, 2014 Author Report Posted February 12, 2014 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. Quote
Alk Posted February 25, 2014 Report Posted February 25, 2014 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.