Set protected dir user password

					StructOperationResponse WebHostingProtectedDirUpdate(string $IDsession, string $id, string $action, array $params)

Change the password of a user of a protected directory.


  • idSession string (32)
    Session ID.
  • id string
    Hosting ID.
  • action string
    Set to “SetUserPassword”.
  • params array
    {“fqdn”: fqdn of the vhost,

    “pathSecured”: Path of the protected directory,

    “username”: name of the user,

    “password”: new password of the user,}

An Object of type StructOperationResponse

$clientSOAP = new SoapClient("http://URL.wsdl");
    $params = array("fqdn" => "",
         "pathSecured" => "/protected",
         "username" => "Testuser",
         "password" => "12abCD%@",
    $idSession = $clientSOAP->sessionOpen("XX000", "xxxxxxxx"); 
    $clientSOAP->WebHostingProtectedDirUpdate($idSession, "NW1024", "SetUserPassword", $params)); 
catch(SoapFault $fault) 
    echo "Exception : " .$fault->getMessage(). "\n"; 
if (isset($idSession))