• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be 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.

Operator ftp-user is not supported

S

Sam1315

Guest
Hi All,

I am getting the following response: 'operator ftp-user is not supported' (errcode: 1017).
I'm creating the following xml packet request;

XML version is '1.0', with 'UTF-8' encoding.
$data = "<packet version='1.4.2.0'>
<ftp-user>
<add>
<name>name</name>
<password>jdnHHbe6Gc</password>
<home/>
<domain-id>3</domain-id>
</add>
</ftp-user>
</packet>";

I'm getting the following xml response:

[ftp-user] => SimpleXMLElement Object
(
[add] => SimpleXMLElement Object
(
[result] => SimpleXMLElement Object
(
[status] => error
[errcode] => 1017
[errtext] => operator ftp-user is not supported


My Curl request is:
function write_callback($ch, $data) {

$length = strlen($data);
return $length;
}


function sendCommand($data, $login, $passwd, $host, $port=8443) {
$script = "enterprise/control/agent.php";
$url = "https://$host:$port/$script";
$headers = array(
"HTTP_AUTH_LOGIN: $login",
"HTTP_AUTH_PASSWD: $passwd",
"HTTP_PRETTY_PRINT: TRUE",
"Content-Type: text/xml",
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_WRITEFUNCTION, 'write_callback');
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
$result = curl_exec($ch);
if (!$result) {

echo "\n\n--\ncURL error number:".curl_errno($ch);
echo "\n\ncURL error:".curl_error($ch);

}
curl_close($ch);
return $result;
}

sendCommand($data, $login, $passwd, $host, $port);

My API RPC v.1.4.2.0
Plesk Panel version : 9.3.0
OS of the control panel: CentOS (Linux 2.6.18-164.11.1.el5)

Any help is greatly appreciated.

Thanks
 
<ftp-user> operation supported for Windows Plesk since version 8.1. It is not supported for Plesk for Unix.
 
Back
Top