System.Web.Security.ActiveDirectoryMembershipProvider.MaxInvalidPasswordAttempts Property

Gets the number of failed answer attempts a user is allowed for the password-reset question.

Syntax

public override int MaxInvalidPasswordAttempts { get; }

Value

Documentation for this section has not yet been entered.

Remarks

When the ActiveDirectoryMembershipProvider.EnablePasswordReset property is true, the user must answer the password question to reset his or her password. The user is allowed a limited number of answer attempts within the time window established by the ActiveDirectoryMembershipProvider.PasswordAttemptWindow property. If the number of password answer attempts is greater than or equal to the value stored in the ActiveDirectoryMembershipProvider.MaxInvalidPasswordAttempts property, the user is locked out of further attempts for the number of minutes stored in the ActiveDirectoryMembershipProvider.PasswordAnswerAttemptLockoutDuration property.

Note:

This property does not control the number of failed logon attempts a user can make before being locked out. The Active Directory server handles failed logon attempts and is not affected by the value of this property.

The ActiveDirectoryMembershipProvider.MaxInvalidPasswordAttempts property is set in your application's configuration file using the maxInvalidPasswordAttempts attribute of the membership element. If the property is not set in the application's configuration file, the ActiveDirectoryMembershipProvider.MaxInvalidPasswordAttempts property is set to the default value of 5.

Requirements

Namespace: System.Web.Security
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0