ActiveDirectoryMembershipProvider.PasswordAttemptWindow プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > ActiveDirectoryMembershipProvider.PasswordAttemptWindow プロパティの意味・解説 

ActiveDirectoryMembershipProvider.PasswordAttemptWindow プロパティ

メモ : このプロパティは、.NET Framework version 2.0 で新しく追加されたものです。

パスワードのリセットの質問に対する解答を連続して失敗した回数を追跡する時間枠を取得します。

名前空間: System.Web.Security
アセンブリ: System.Web (system.web.dll 内)
構文構文

Public Overrides ReadOnly
 Property PasswordAttemptWindow As Integer
Dim instance As ActiveDirectoryMembershipProvider
Dim value As Integer

value = instance.PasswordAttemptWindow
public override int PasswordAttemptWindow {
 get; }
public:
virtual property int PasswordAttemptWindow {
    int get () override;
}
/** @property */
public int get_PasswordAttemptWindow ()
public override function get
 PasswordAttemptWindow () : int

プロパティ値
パスワードのリセットの質問に対する解答に連続して失敗した回数を追跡する時間枠 (分単位)。既定値は 10 分です。失敗と失敗の間隔が PasswordAttemptWindow プロパティの設定値より大きい場合、ActiveDirectoryMembershipProvider インスタンスでは、それぞれの失敗を最初の失敗として扱います。

例外例外
例外の種類条件

InvalidOperationException

ActiveDirectoryMembershipProvider インスタンスが初期化される前に、PasswordAttemptWindow プロパティにアクセスしようとしました。

解説解説

ユーザーが自分のパスワードをリセットしようとする場合、ある時間枠内で連続して試行できるのはある特定の回数だけです。時間枠の長さは、PasswordAttemptWindow プロパティにより指定されます。PasswordAttemptWindow プロパティに定義された時間枠の中で、パスワードのリセットにユーザーが連続して失敗した回数が MaxInvalidPasswordAttempts プロパティに格納された値と等しい場合、PasswordAnswerAttemptLockoutDuration プロパティに指定されている分数だけそのユーザー アカウントがロックアウトされます。

PasswordAnswerAttemptLockoutDuration プロパティに設定する値は、Active Directory 構成で所定の回数にわたってログオンに失敗した場合に対して指定されたアカウントのロックアウト期間と同じ値にすることをお勧めします。これにより、ロックアウトの原因が失敗したログオンの回数であるか無効なパスワードの解答であるかに関係なく、ユーザーの自動ロックアウトの動作に一貫性が保たれます。

PasswordAnswerAttemptLockoutDuration プロパティは、アプリケーションの構成ファイル内の membership 要素 (ASP.NET 設定スキーマ) 要素の passwordAttemptWindow 属性を使用して設定されます。アプリケーションの構成ファイルでこのプロパティが設定されていない場合、PasswordAnswerAttemptLockoutDuration プロパティは既定値の 10 分間に設定されます。

使用例使用例

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>
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ActiveDirectoryMembershipProvider クラス
ActiveDirectoryMembershipProvider メンバ
System.Web.Security 名前空間
その他の技術情報
メンバシップの概要



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

ActiveDirectoryMembershipProvider.PasswordAttemptWindow プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ActiveDirectoryMembershipProvider.PasswordAttemptWindow プロパティのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS