ActiveDirectoryMembershipProvider.MaxInvalidPasswordAttempts プロパティ
アセンブリ: System.Web (system.web.dll 内)

Dim instance As ActiveDirectoryMembershipProvider Dim value As Integer value = instance.MaxInvalidPasswordAttempts
アカウントがロックされるまでに無効なパスワードの解答をユーザーが入力できる回数。既定値は 5 です。


EnablePasswordReset プロパティが true の場合、パスワードをリセットするには、ユーザーはパスワードの質問に解答する必要があります。ユーザーは、PasswordAttemptWindow プロパティで設定された時間枠の中で、限定された回数だけ解答できます。ユーザーがパスワードの解答を MaxInvalidPasswordAttempts プロパティに格納された値の回数以上入力しようとすると、ユーザーは PasswordAnswerAttemptLockoutDuration プロパティに指定された時間 (分数) だけロックアウトされ、別の解答を指定できなくなります。
![]() |
---|
ロックアウトされるまでにユーザーが試行できる失敗したログオンの回数はこのプロパティでは制御されません。失敗したログオンの回数は Active Directory サーバーで処理されるので、このプロパティの値には影響されません。 |
MaxInvalidPasswordAttempts プロパティは、アプリケーションの構成ファイル内の membership 要素 (ASP.NET 設定スキーマ) 要素の maxInvalidPasswordAttempts 属性を使用して設定されます。アプリケーションの構成ファイルでこのプロパティが設定されていない場合、MaxInvalidPasswordAttempts プロパティは既定値の 5 に設定されます。

10 分の時間枠の中でパスワードの解答の入力にユーザーが 3 回失敗した場合、そのユーザーをロックアウトする ActiveDirectoryMembershipProvider インスタンスを構成する Web.config エントリを次のコード例に示します。ロックアウトされたユーザーは、15 分間はパスワードの質問の解答を新たに入力できません。
<configuration> <connectionStrings> <add name="ADService" connectionString="LDAP://ldapServer/" /> </connectionStrings> <system.web> <membership defaultProvider="AspNetActiveDirectoryMembershipProvider"> <providers> <add name="AspNetActiveDirectoryMembershipProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.3600, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" maxInvalidPasswordAttempts="3" passwordAttemptWindow="10" passwordAnswerAttemptLockoutDuration="15" /> </providers> </membership> </system.web> </configuration>

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からActiveDirectoryMembershipProvider.MaxInvalidPasswordAttempts プロパティを検索する場合は、下記のリンクをクリックしてください。

- ActiveDirectoryMembershipProvider.MaxInvalidPasswordAttempts プロパティのページへのリンク