• 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.

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