• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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