Set protected dir authname

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

Change the authname of the protected directory.

REQUIRED

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

    “pathSecured”: Path of the directory,

    “authname”: Realm to be used in the authentication}

An Object of type StructOperationResponse

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{
    $params = array("fqdn" => "wordpress.netim.com",
         "pathSecured" => "/protected",
         "authname" => "Welcome to netim",
        );
 
    $idSession = $clientSOAP->sessionOpen("XX000", "xxxxxxxx"); 
    $clientSOAP->WebHostingProtectedDirUpdate($idSession, "NW1024", "SetAuthname", $params)); 
}
catch(SoapFault $fault) 
{
    echo "Exception : " .$fault->getMessage(). "\n"; 
}
 
if (isset($idSession)) 
{
    $clientSOAP->sessionClose($idSession); 
}