Dela via


AuthPersistence Metabase Property

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

The AuthPersistence property specifies authentication persistence across requests on a connection using NTLM authentication. The default for NTLM is false (0), for legacy reasons, while all other authentication schemes assume the single request to be true (1). When the AuthPersistSingleRequest flag is set to true on this property, IIS 6.0 automatically reauthenticates every request, even those on the same connection. This behavior is different on IIS 5.0 and IIS 5.1, where there were two other flags for the AuthPersistence property specifying persistence based on the existence of a proxy server.

Attribute Name Attribute Value

XML Data Type

DWORD

WMI Data Type

SINT32

ADSI Data Type

DWORD

ABO Data Type

DWORD

ABO Metabase Identifier

MD_AUTHORIZATION_PERSISTENCE

Attributes

INHERIT

Default Value

authpersistsinglerequest

MetaFlagsEx

CACHE_PROPERTY_MODIFIED

User Type

IIS_MD_UT_FILE

ID

6031

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/W3SVC/n

IIsWebServer

/LM/W3SVC

IIsWebService

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

IIsWebFile

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

IIsWebDirectory

Flags

Flag Name AuthPersistSingleRequest

Description

Setting this flag to true specifies that authentication persists only for a single request on a connection. IIS resets the authentication at the end of each request, and forces re-authentication on the next request of the session.

Metabase Bitmask Identifier

MD_AUTH_SINGLEREQUEST

Decimal Value

64

Hexadecimal Value

0x00000040

Code Example

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