• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

ClientExec and Plesk

H

HaMiL

Guest
Hello. I have some problems with integration ClientExec with Plesk 8.3.
More... Domain created by global reselling account. But domain owner in auto-creating domain system, have minimal permissions. I not modify e-mail accounts, sub domain, manage dns and other.

ClientExec add domain to user:
04/07/08 16:24:40 212.115.231.16:2799- CURL request (using PHP extension) to
https://test.moddingtest.com:8443/enterprise/control/agent.php: <?xml version="1.0"
encoding="UTF-8" standalone="no" ?>
<packet version="1.3.1.0">
<domain>
<add>
<gen_setup>
<name>alternativedomainname.com</name>

<ip_address>212.115.231.16</ip_address>
</gen_setup>
<hosting>
<vrt_hst>
<ftp_login>altname</ftp_login>
<ftp_password>1234567890</ftp_password>
<at_domains>true</at_domains>
<cgi>true</cgi>
<errdocs>true</errdocs>
<mod_perl>true</mod_perl>
<mod_python>true</mod_python>
<php>true</php>
<ssi>true</ssi>
<ssl>true</ssl>
<webstat>none</webstat>

<ip_address>212.115.231.16</ip_address>
</vrt_hst>
</hosting>
<user>
<enabled>true</enabled>
<password>1234567890</password>
</user>
<limits>
<disk_space>314572800</disk_space>
<max_box>10</max_box>
<max_db>5</max_db>
<max_mg>5</max_mg>
<max_redir>10</max_redir>
<max_resp>5</max_resp>
<max_subdom>10</max_subdom>
<max_wu>1</max_wu>
</limits>
<prefs><www>true</www></prefs>
</add>
</domain>

Learning API, but problems not fixed!
Questions: What i need add in xml request, also my domain owner have manage- permissions and in what sections?

Sorry from my bad English. I live in Russia.
Thx.
 
Something like this:

PHP:
<packet version="1.4.2.0">
<client>
<add>
   <gen_info>
       <cname>LogicSoft Ltd.</cname>
       <pname>Stephen Lowell</pname>
       <login>stevelow</login>
       <passwd>Jhtr66fBB</passwd>
       <status>0</status>
       <phone>416 907 9944</phone>
       <fax>928 752 3905</fax>
       <email>[email protected]</email>
       <address>105 Brisbane Road, Unit 2</address>
       <city>Toronto</city>
       <state/>
       <pcode/>
       <country>CA</country>
   </gen_info>
   <permissions>				
       <create_domains>true</create_domains>
       <manage_phosting>true</manage_phosting>
       <manage_quota>false</manage_quota>
       <manage_subdomains>true</manage_subdomains>
       <change_limits>true</change_limits>
       <manage_dns>true</manage_dns>
       <manage_log>true</manage_log>
       <manage_anonftp>true</manage_anonftp>
       <manage_webapps>true</manage_webapps>
       <manage_sh_access>true</manage_sh_access>
       <manage_maillists>true</manage_maillists>
       <make_dumps>true</make_dumps>
       <remote_access_interface>true</remote_access_interface>
       <cp_access>true</cp_access>
       <manage_domain_aliases>true </manage_domain_aliases>
   </permissions>
</add>
</client>
</packet>

You can also use client templates and specify those when the client account is created.
 
HostingGuy
No. Your example add client in Plesk.
I need add domain administrator with full-premissions.

Okay... Next... How to suspend client? (not main domain!)
In API not see this :(
Locked domain is:
<domain>
<set>
<filter>
<id>36</id>
</filter>
<values>
<gen_setup>
<status>16</status>
</gen_setup>
</values>
</set>
</domain>
 
Yes, if you need it to do something else then change the script. For the client suspension, I do not beleive that you can disable a client but leave the domains online by default, I think then you have to re-enable the domains of the client after the client is disabled.

I dont see why you would want to disable the client but leave the domains, that is basically just leaving the control panel access disabled which is something seperate you can do.
 
Yes, i doing this!
All client suspended by (example):

<domain>
<set>
<filter>
<client-id>10</client-id>
</filter>
<values>
<gen_setup>
<status>16</status>
</gen_setup>
</values>
</set>
</domain>"
 
why are you setting domain as the operator but sending client ID as the filter? Shouldnt you be sending domain ID - I would be highly surprised if what you posted worked.
 
Back
Top