> For the complete documentation index, see [llms.txt](https://docs.dispel.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dispel.com/documentation/documentation-ja/shisuru/identity-providers/active-directory.md). Agents can also search and read this documentation through its [MCP server](https://docs.dispel.com/~gitbook/mcp).

# Active Directory

Active Directory を ID プロバイダーとして使用し、ユーザーが LDAPS 経由で Active Directory の認証情報を使って Dispel にサインインするようにします。

## Active Directory連携の設定 <a href="#configuring-an-active-directory-integration" id="configuring-an-active-directory-integration"></a>

組織の **Active Directory（AD）** をDispelに接続すると、チームは既存の会社の認証情報でサインインでき、ユーザーがすでに所属しているADグループに基づいてアクセス権が自動的に付与されます。

***

### 開始する前に <a href="#before-you-begin" id="before-you-begin"></a>

Active Directory経由でユーザーがDispelにサインインできるようにするには、以下のリソースが必要です。

* **読み取り専用のADサービスアカウント**：Dispelはこれを使用してユーザーとグループを検索します。最小権限で設定し、書き込みアクセス権は必要ありません。
* **ドメインコントローラーのホスト名** （例： `dc01.corp.example.com`）。Dispelから以下のポートでアクセスできます。 **LDAPS（ポート636）**.
* **CA証明書** ドメインコントローラーのTLS証明書を発行したもの。
* **組織単位（OU）** ユーザーとグループが格納されている場所。

***

### 1. Active Directoryの設定を開く <a href="#id-1.-open-the-active-directory-settings" id="id-1.-open-the-active-directory-settings"></a>

次の場所に移動します。 **設定 → 認証 → Active Directory** Dispelダッシュボードで。

<figure><img src="https://2841354894-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5T5Fo32wwisEqZbODG7j%2Fuploads%2Fgit-blob-a5e4e108ec026492bf2c642249fba1dc49494502%2FScreenshot%202026-07-29%20at%204.43.53%E2%80%AFPM.png?alt=media" alt=""><figcaption></figcaption></figure>

***

### 2. 統合の名前を付け、サインイン識別子を設定する <a href="#id-2.-name-the-integration-and-set-the-sign-in-identifier" id="id-2.-name-the-integration-and-set-the-sign-in-identifier"></a>

「 **接続** 」セクションに入力します。

<figure><img src="https://2841354894-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5T5Fo32wwisEqZbODG7j%2Fuploads%2Fgit-blob-d98e1227d88d12bc8afc75b02bedd57c4afb9a15%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

| フィールド                     | 概要                                                            | 確認する場所                                                   |
| ------------------------- | ------------------------------------------------------------- | -------------------------------------------------------- |
| **名前**                    | この統合のわかりやすいラベルです。Dispel 内でのみ表示されます。                           | 任意の名前を指定します（例: 「企業 AD」や「工場ディレクトリ」）。                      |
| **サインイン識別子**              | このディレクトリでサインインする際に、ユーザーが入力する短く一意なキーワードです。英字、数字、ハイフンを使用してください。 | 任意の値を指定します（例: `plant-directory`). 統合全体で一意である必要があります。     |
| **Active Directory ドメイン** | AD DNSドメイン名。                                                  | AD/DNSドメイン（例： `corp.example.com`）。不明な場合は、AD管理者に確認してください。 |

***

### 3. ドメインコントローラーを追加する <a href="#id-3.-add-your-domain-controllers" id="id-3.-add-your-domain-controllers"></a>

Dispelが接続するドメインコントローラーを一覧にします。1行に1つ入力してください。冗長化のため、複数追加できます。

<figure><img src="https://2841354894-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5T5Fo32wwisEqZbODG7j%2Fuploads%2Fgit-blob-6a0922c8b797f53a8d7deb15cda58dc015734cc5%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

| フィールド       | 概要                                               | 確認する場所                                                                        |
| ----------- | ------------------------------------------------ | ----------------------------------------------------------------------------- |
| **コントローラー** | LDAPS（ポート636）経由で接続するドメインコントローラーのホスト名（またはIPアドレス）。 | 例： `dc01.corp.example.com`。AD 管理者または DNS から入手します。Dispel から到達可能であることを確認してください。 |

> **ヒント：** 保存してテストすると、各コントローラーに次のヘルスステータスが表示されます。— **正常**, **到達不能**, **TLS 接続失敗**、または **バインド失敗** — これにより、接続の問題をひと目で確認できます。

***

### 4. 証明書の信頼を選択 <a href="#id-4.-choose-certificate-trust" id="id-4.-choose-certificate-trust"></a>

「 **証明書の信頼**」で、Dispel がドメインコントローラーの TLS 証明書をどのように検証するかを選択します。 **完全な検証を強く推奨します。**

<figure><img src="https://2841354894-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5T5Fo32wwisEqZbODG7j%2Fuploads%2Fgit-blob-bd1dd84fed3f3497cd68da90f5d5c4efdc7f0b10%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

| オプション                      | 意味                                              | 使用するタイミング                             |
| -------------------------- | ----------------------------------------------- | ------------------------------------- |
| **証明書チェーンとホスト名を検証** *（推奨）* | Dispel は証明書チェーン **と** ホスト名が一致することを検証します。最も安全です。 | ほとんどの場合に使用します。下で CA 証明書をアップロードしてください。 |
| **ホスト名の確認を省略**             | 証明書チェーンは引き続き検証されます。省略されるのはホスト名の一致確認のみです。        | 証明書のホスト名が接続先のアドレスと一致しない場合に限り使用してください。 |
| **検証を無効化**                 | 接続は **認証されず** 、傍受される可能性があります。                   | 推奨されません。明示的な確認が必要です。                  |

| フィールド      | 概要                                                                 | 確認する場所                                                 |
| ---------- | ------------------------------------------------------------------ | ------------------------------------------------------ |
| **CA 証明書** | ドメインコントローラーの証明書に署名した認証局の公開証明書です。PEM テキストを貼り付けるか、ファイルをアップロードしてください。 | PKI または AD 管理者から入手してください。使用できる形式： **PEM、CRT、または CER**. |

***

### 5. サービスアカウントの認証情報を追加する <a href="#id-5.-add-the-service-account-credentials" id="id-5.-add-the-service-account-credentials"></a>

「 **サービスアカウント**」で、Dispel がディレクトリの照会に使用する読み取り専用アカウントを指定します。

<figure><img src="https://2841354894-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5T5Fo32wwisEqZbODG7j%2Fuploads%2Fgit-blob-6ef23b59a1eac4c022eb0e39b658dd157de489fb%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

| フィールド               | 概要                          | 確認する場所                                                                                                                                                 |
| ------------------- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **バインド DN または UPN** | Dispel が認証に使用するサービスアカウントです。 | アカウントの UPN（例： `svc-dispel@corp.example.com`）または識別名（例： `CN=svc-dispel,OU=Service Accounts,DC=corp,DC=example,DC=com`）を入力します。 **読み取り専用** アカウントを使用してください。 |
| **バインドパスワード**       | サービスアカウントのパスワード。            | サービスアカウントを作成した担当者が設定した値です。（保存すると非表示になります。変更する場合のみ新しい値を入力してください。）                                                                                       |

***

### 6. ID マッピングを設定する <a href="#id-6.-set-the-identity-mapping" id="id-6.-set-the-identity-mapping"></a>

「 **ID**」で、ユーザーとグループの検索場所、および読み取る属性を Dispel に指定します。

<figure><img src="https://2841354894-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5T5Fo32wwisEqZbODG7j%2Fuploads%2Fgit-blob-9f6db0d32b9d7b0b837eebf35e7326fb99288cd3%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

| フィールド         | 概要                                | 確認する場所                                                                                   |
| ------------- | --------------------------------- | ---------------------------------------------------------------------------------------- |
| **ユーザー検索ベース** | Dispel がユーザーを検索する OU（識別名）です。      | 例： `OU=Users,DC=corp,DC=example,DC=com`。AD の構造（Active Directory ユーザーとコンピューター）から確認してください。 |
| **グループ検索ベース** | Dispel がグループを検索する OU です。          | 例： `OU=Groups,DC=corp,DC=example,DC=com`。AD の構造から確認してください。                               |
| **ログイン属性**    | ユーザーがサインイン時にユーザー名として入力する AD 属性です。 | 検出された属性から選択します。一般的には `sAMAccountName` または `userPrincipalName`.                           |

**詳細設定** （任意 - 展開して調整）:

| フィールド       | 概要                     | 確認する場所                              |
| ----------- | ---------------------- | ----------------------------------- |
| **表示名**     | ユーザーの表示名に使用する属性です。     | 通常は `displayName` または `cn`.         |
| **メールアドレス** | ユーザーのメールアドレスに使用する属性です。 | 通常は `mail` または `userPrincipalName`. |

***

### 7. 接続をテストする <a href="#id-7.-test-the-connection" id="id-7.-test-the-connection"></a>

［ **接続をテスト**］をクリックします。Dispel はサービスアカウントでバインドし、各ドメインコントローラーを確認します。

<figure><img src="https://2841354894-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5T5Fo32wwisEqZbODG7j%2Fuploads%2Fgit-blob-c5b37669559382afc58b977bc800e61b296c6206%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

* テストに **成功すると** グループマッピングが利用可能になり、連携を有効にできます。
* コントローラーに **TLS エラー**, **バインドエラー**または **到達不能**と表示された場合は、以下の [トラブルシューティング](#troubleshooting) を参照してください。

> **注:** 後から接続設定を変更すると、以前のテスト結果は **古い状態** になります。連携を有効にする前に、再テストしてください。

***

### 8. AD グループを Dispel グループにマッピングする <a href="#id-8.-map-a-d-groups-to-dispel-groups" id="id-8.-map-a-d-groups-to-dispel-groups"></a>

［ **グループアクセス**］で、各 Active Directory グループを、そのグループにアクセス権を付与する Dispel グループにマッピングします。 **いずれのグループにもマッピングされていないユーザーはサインインできません**。そのため、少なくとも1つのグループをマッピングしてください。

<figure><img src="https://2841354894-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5T5Fo32wwisEqZbODG7j%2Fuploads%2Fgit-blob-6faf89ae9eeaf03c1c10a4dec3387878abb60bcb%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

| 列           | 概要                                    | 確認する場所                      |
| ----------- | ------------------------------------- | --------------------------- |
| **AD グループ** | メンバーシップを読み取る Active Directory グループです。 | 入力を開始して、ディレクトリ内のグループを検索します。 |
| **組織グループ**  | メンバーにアクセス権を付与する Dispel グループです。        | 既存の Dispel グループから選択します。     |

［ **マッピングを追加** ］を使用して行を追加します。メンバーは自動的に同期されます。マッピングされた AD グループにユーザーを追加するとアクセス権が付与され、削除するとアクセス権が失われます。

***

### 9.（任意）ユーザーのサインインをテストする <a href="#id-9.-optional-test-a-user-sign-in" id="id-9.-optional-test-a-user-sign-in"></a>

有効にする前に、 **ユーザーのサインインをテスト** から実際のユーザーのサインインをドライランし、サインインが許可され、適切なグループに割り当てられることを確認できます。

<figure><img src="https://2841354894-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5T5Fo32wwisEqZbODG7j%2Fuploads%2Fgit-blob-3811d6a9b2386fe71ed7178b0634ab8eff5880a2%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

| フィールド     | 概要                       | 確認する場所                                 |
| --------- | ------------------------ | -------------------------------------- |
| **ユーザー名** | テストに使用する、実際のディレクトリユーザー名。 | 選択したログイン属性に一致する、任意のADユーザーのログイン値。       |
| **パスワード** | そのユーザーのパスワード。            | ユーザー本人のパスワード。テストにのみ使用され、保存されることはありません。 |

［ **テストを実行** ］をクリックすると、アクセスが **許可** されるか **拒否**されるか、およびどのグループが解決されるかを確認できます。

***

### 10. インテグレーションを有効にする <a href="#id-10.-enable-the-integration" id="id-10.-enable-the-integration"></a>

接続テストに合格し、少なくとも1つのグループがマッピングされたら、［ **有効にする**］をクリックします。これで、ユーザーはステップ2のサインイン識別子を使ってActive Directoryの認証情報でサインインできるようになります。

<figure><img src="https://2841354894-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5T5Fo32wwisEqZbODG7j%2Fuploads%2Fgit-blob-104bfb7e54151452d54d9142b51006dff58d2b66%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

***

### ユーザーのサインイン方法 <a href="#keeping-access-in-sync" id="keeping-access-in-sync"></a>

インテグレーションを有効にすると、ユーザーはDispelのパスワードではなく、Active Directoryの認証情報でサインインします。

1. Dispelのサインイン画面で、ユーザーは **サインイン識別子**を入力し、続いて **ADのユーザー名とパスワード**.
2. を入力します。Dispelは認証情報をディレクトリに直接照合するため、外部のIDプロバイダーへのリダイレクトはありません。
3. 認証に成功すると、サインインできます。

Dispelは、設定した属性を使用して、ディレクトリからユーザーのメールアドレスと表示名を読み取ります。

{% hint style="info" %}
**ユーザーは事前に招待されている必要があります**。ADに対する認証でユーザーの身元は確認できますが、それだけでアクセスが許可されるわけではありません。Active Directoryでは、マッピングされたADグループにユーザーが所属すると、招待が自動的に作成されます。グループ同期によってユーザーが招待され、グループから削除されるとアクセス権が取り消されます。マッピングされたグループに所属していないユーザーはサインインできません。
{% endhint %}

***

### アクセス権の同期を維持する <a href="#keeping-access-in-sync" id="keeping-access-in-sync"></a>

インテグレーションを有効にすると、Dispelは定期的なスケジュールで、DispelのグループメンバーシップをマッピングされたActive Directoryグループと自動的に同期します。マッピングされたグループに追加されたユーザーにはアクセス権が付与され、削除されたユーザーのアクセス権は手動操作なしで取り消されます。

Active Directoryでメンバーシップを変更した直後に変更を反映したい場合は、 **今すぐ同期**.

<figure><img src="https://2841354894-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5T5Fo32wwisEqZbODG7j%2Fuploads%2Fgit-blob-849ef03373977b675bfde69590b540f5f0fd8eee%2Fimage.png?alt=media" alt="" width="375"><figcaption></figcaption></figure>

* **今すぐ同期** ボタンがActive Directoryページのヘッダー右上に表示されるのは、インテグレーションが **有効**.
* になっている場合のみです。クリックすると、すぐに同期が実行されます。処理中はボタンに\
  **同期中…**&#x3068;表示され、完了すると **最終同期** のタイムスタンプが更新されます。
* 定期的に手動で実行する必要はありません。自動同期によって常に最新の状態に保たれます。次回のスケジュール同期を待たずに変更を反映したい場合に使用してください。

***

### インテグレーションの管理 <a href="#managing-the-integration" id="managing-the-integration"></a>

* **変更を適用**：既存のインテグレーションへの編集を保存します。接続設定を変更すると、テスト結果は古くなります。結果を信頼する前に、もう一度テストしてください。
* **無効にする**：設定を削除せずに、ディレクトリによるサインインを停止します。ローカルサインインと緊急用サインインは引き続き利用できます。いつでも再度有効にできます。
* **削除**：ドメインコントローラー、証明書の信頼設定、グループマッピングを含め、インテグレーション全体を削除します。

***

### トラブルシューティング <a href="#troubleshooting" id="troubleshooting"></a>

| ステータス／メッセージ    | 通常の意味                        | 確認事項                                                                |
| -------------- | ---------------------------- | ------------------------------------------------------------------- |
| **接続不可**       | Dispel がドメインコントローラーに接続できません。 | ホスト名が正しく、Dispel からポート 636 経由で到達できること。                               |
| **TLS の失敗**    | 証明書を検証できませんでした。              | 正しい CA 証明書がアップロードされており（ステップ 4）、コントローラーの証明書と一致していること。                |
| **バインドの失敗**    | サービスアカウントを認証できませんでした。        | Bind DN/UPN とパスワードが正しいこと、ログイン属性／メール属性が正しいこと、アカウントが有効であること。          |
| **ユーザーが拒否される** | ユーザーがマッピング済みグループに所属していません。   | ユーザーがマッピング済みの AD グループに所属していること、およびグループマッピング（ステップ 8）が正しいことを確認してください。 |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.dispel.com/documentation/documentation-ja/shisuru/identity-providers/active-directory.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
