• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

Cloudflare plugin doesn't modify DNS

andreai

New Pleskian
Hi, I'm trying to configure Cloudflare plugin (3.0.0-28) for plesk (11.0.9 Update #51), but it seams to doesn't make changes to domain DNS zone. The plugin obtains from plesk environment the reseller/customer user and password and by Plesk API-RPC it tries to add/modify dns records.
Code:
define ('PLESK_ADMIN_URL',         'https://' . getenv("BASE_URL_HOST") . ':8443/enterprise/control/agent.php');
define ('PLESK_ADMIN_USER',        getenv("SETTINGS_admin_login"));
define ('PLESK_ADMIN_PASS',        getenv("SETTINGS_admin_password"));


Debugging the script, this is one of the requests done:
Code:
<packet version="1.6.3.0"><dns><get_rec><filter><site-id>43</site-id></filter></get_rec></dns></packet><?xml version="1.0" encoding="UTF-8"?>

And the response returned by plesk:
Code:
<packet version="1.6.3.0"><dns><get_rec><result><status>error</status><errcode>1006</errcode><errtext>Permission denied.</errtext></result></get_rec></dns></packet>

If the plug-in form is filled with admin as user and its password, the dns records are correctly modified, but my customers can't obviously use the admin credentials.

In plesk-10-api-rpc-guide.pdf is reported:
Plesk clients/resellers have access to a limited number of operations within each
particular version of API RPC. When using a Plesk client/reseller account, a strict
requirement is that options 'CP access' and 'Ability to use remote XML interface' are
enabled, of which Plesk Administrator should be requested in advance.
But i can't find the 'Ability to use remote XML interface' option in plesk 11.

How i can assign the necessary rights to my customers for correctly use Cloudflare plugin?

Thanks!
 
UPDATE:

It's not caused by disabled API permission becouse IT IS SET TO TRUE!

!!! you are root !!!@hosting:/opt/psa/bin# ./reseller_pref -i andrea_reseller
The reseller is subscribed to service plan "Reseller Illimitato con chroot e planner".
The subscription is locked for syncing.

Reseller permissions:
Access to the Panel true
Customer account creation true
Subscription creation in Server Administration Panel and domain creation in Control Panel. true
Hosting settings management true
Common PHP settings management true
Can allow access only to a chrooted environment true
Can allow access to any type of shell false
Hard disk quota assignment true
Subdomains management true
Domain aliases management true
Log rotation management true
Anonymous FTP management true
Additional FTP accounts management true
Scheduler management true
Allow overselling true
DNS zone management true
Java applications management true
Web statistics management true
Ability to change mail settings true
Mailing lists management true
Spam filter management true
Antivirus management true
Data backup and restoration using the server repository true
Data backup and restoration using a personal FTP repository true
Ability to use remote API true
Hosting performance settings management true
Database server selection true
Access to Application Catalog true
Setup of potentially insecure web scripting options that override provider's policy true
Access to advanced operations: Website Copying and Website Maintenance Mode true
Password-protected directories management true
Ability to manage auxiliary user accounts true
Allow activating APS apps using license keys from the Panel license pool false

The reseller user and password used by curl requests are correct.

Why I get "Permission denied" using xml API?
 
UPDATE:

It's not caused by disabled API permission becouse IT IS SET TO TRUE!

!!! you are root !!!@hosting:/opt/psa/bin# ./reseller_pref -i andrea_reseller
The reseller is subscribed to service plan "Reseller Illimitato con chroot e planner".
The subscription is locked for syncing.

Reseller permissions:
Access to the Panel true
Customer account creation true
Subscription creation in Server Administration Panel and domain creation in Control Panel. true
Hosting settings management true
Common PHP settings management true
Can allow access only to a chrooted environment true
Can allow access to any type of shell false
Hard disk quota assignment true
Subdomains management true
Domain aliases management true
Log rotation management true
Anonymous FTP management true
Additional FTP accounts management true
Scheduler management true
Allow overselling true
DNS zone management true
Java applications management true
Web statistics management true
Ability to change mail settings true
Mailing lists management true
Spam filter management true
Antivirus management true
Data backup and restoration using the server repository true
Data backup and restoration using a personal FTP repository true
Ability to use remote API true
Hosting performance settings management true
Database server selection true
Access to Application Catalog true
Setup of potentially insecure web scripting options that override provider's policy true
Access to advanced operations: Website Copying and Website Maintenance Mode true
Password-protected directories management true
Ability to manage auxiliary user accounts true
Allow activating APS apps using license keys from the Panel license pool false

The reseller user and password used by curl requests are correct.

Why I get "Permission denied" using xml API?
 
Back
Top