Share via


UNCUserName Metabase Property

Applies To: Windows Server 2003, Windows Server 2003 with SP1

The UNCUserName property specifies the user name for Universal Naming Convention (UNC) virtual roots. Use this property only as a flag for authentication schemes that support delegation.

Note

Integrated Windows authentication (NTLM) does not support delegation.

When a request comes in to the IIS server, IIS looks at the UNCUserName property on the virtual directory. If the property exists and it is not an empty string, then the UNC user name and password are used for authentication. If authentication fails, a 401.2 error is returned to the client. If authentication passes, then the client's original credentials are passed through to the resources that were requested.

Attribute Name Attribute Value

XML Data Type

String

WMI Data Type

String

ADSI Data Type

String

ABO Data Type

String

ABO Metabase Identifier

MD_VR_USERNAME

Attributes

INHERIT

Default Value

null

MetaFlagsEx

CACHE_PROPERTY_MODIFIED

User Type

IIS_MD_UT_FILE

ID

3002

Configurable Locations

You can configure this property at the following locations in the IIS metabase.

Metabase Path IIS Admin Object Type

/LM/W3SVC/n/ROOT /LM/W3SVC/n/ROOT/virtual_directory_name

IIsWebVirtualDir

/LM/MSFTPSVC/n/ROOT /LM/MSFTPSVC/n/ROOT/virtual_directory_name

IIsFtpVirtualDir

/LM/NNTPSVC/n/ROOT /LM/NNTPSVC/n/ROOT/virtual_directory_name

IIsNntpVirtualDir

/LM/SMTPSVC/n/ROOT /LM/SMTPSVC/n/ROOT/virtual_directory_name

IIsSmtpVirtualDir

Code Example

For general code examples, see Code Examples to Configure Metabase Properties.