InstallerTaskBase.

InstallerIISPropertiesElement Property

Summary

Specifies directory security in IIS. Can also configure the default documents supported by each directory.

This not an officially Microsoft supported table.

Parameters

Attribute Type Description Required
directory string Reference to a directory. This is the directory that gets modified with the specific attributes. True
attr int Attributes to set for the directory. DescriptionThe file or the contents of the folder may be read through Microsoft Internet Explorer.Users are allowed to upload files and their associated properties to the enabled directory on your server or to change content in a Write-enabled file. Write can be implemented only with a browser that supports the PUT feature of the HTTP 1.1 protocol standard.The file or the contents of the folder may be executed, regardless of file type.File access requires SSL file permission processing, with or without a client certificate.Users are allowed to access source code if either Read or Write permissions are set. Source code includes scripts in Microsoft � Active Server Pages (ASP) applications.SSL file access processing requests a certificate from the client. A value of false indicates that access continues if the client does not have a certificate. Some versions of Internet Explorer will close the connection if the server requests a certificate and a certificate is not available (even if AccessSSLRequireCert is also set to true).SSL file access processing requests a certificate from the client. If the client provides no certificate, the connection is closed. AccessSSLNegotiateCert must also be set to true when using AccessSSLRequireCert.SSL file permission processing maps a client certificate to a Microsoft Windows � operating system user-account. The AccessSSLNegotiateCert property must also be set to true for the mapping to occur.File access requires SSL file permission processing with a minimum key size of 128 bits, with or without a client certificate.The file or the contents of the folder may be executed if they are script files or static content. A value of false only allows static files, such as HTML files, to be served.Remote requests to create or change files are denied; only requests from the same computer as the IIS server succeed if the AccessWrite property is set to true. You cannot set AccessNoRemoteWrite to false to enable remote requests, and set AccessWrite to false to disable local requests.Remote requests to view files are denied; only requests from the same computer as the IIS server succeed if the AccessRead property is set to true. You cannot set AccessNoRemoteRead to false to enable remote requests, and set AccessRead to false to disable local requests.Remote requests to execute applications are denied; only requests from the same computer as the IIS server succeed if the AccessExecute property is set to true. You cannot set AccessNoRemoteExecute to false to enable remote requests, and set AccessExecute to false to disable local requests.Requests to view dynamic content are denied; only requests from the same computer as the IIS server succeed if the AccessScript property is set to true. You cannot set AccessNoRemoteScript to false to enable remote requests, and set AccessScript to false to disable local requests.Access to the physical path is not allowed.
Value Flag Name
1 AccessRead
2 AccessWrite
4 AccessExecute
8 AccessSSL
16 AccessSource
32 AccessSSLNegotiateCert
64 AccessSSLRequireCert
128 AccessSSLMapCert
256 AccessSSL128
512 AccessScript
1024 AccessNoRemoteWrite
4096 AccessNoRemoteRead
8192 AccessNoRemoteExecute
16384 AccessNoRemoteScript
32768 AccessNoPhysicalDir
True
defaultdoc string Adds a filename to the Default Documents to process. Add multiple separated with a comma (Eg. "Default.aspx,Default.htm") False

Examples

Specify permissions for the directory structure. <iisproperties> <iisproperty directory="TARGETDIR" attr="626" defaultdoc="Default.aspx" /> <iisproperty directory="D__BIN" attr="112" /> <iisproperty directory="D__SomeSubDir" attr="114" /> </iisproperties>
Assembly
NAnt.Contrib.dll
Namespace
NAnt.Contrib.Tasks.Msi
Containing Type
InstallerTaskBase

Syntax

[BuildElement("iisproperties", ProcessXml = false)]
public SchemaElement[] InstallerIISPropertiesElement { get; set; }

Attributes

Type Description
BuildElement

Value

Type Description
SchemaElement[]