• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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