1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Operator ftp-user is not supported

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by Sam1315, May 23, 2010.

  1. Sam1315

    Sam1315 Guest

    0
     
    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
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,543
    Likes Received:
    1,238
    Location:
    Novosibirsk, Russia
    <ftp-user> operation supported for Windows Plesk since version 8.1. It is not supported for Plesk for Unix.
     
Loading...