---
schema_version: "1"
id: 101d3330019c7abf81a4c2dfc28a5937b03e779a95b4632226ac9bc776ca6f78
title: LDAP セキュリティマネージャー
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/mule-gateway/policies-mule3-ldap-security-manager.md
canonical_url: https://docs.mulesoft.com/jp/mule-gateway/policies-mule3-ldap-security-manager
source_site: docs.mulesoft.com
content_type: documentation
content_hash: bc516efdd0c4564e0822dabfb531f00203ceb73af382d9912fda787653237a5e
description: MuleSoft Documentation Site
latest: true
---
# LDAP セキュリティマネージャー

LDAP セキュリティマネージャーポリシーでは、会社にセットアップした Open LDAP または Active Directory LDAP の設定の詳細を定義します。LDAP セキュリティマネージャーポリシーを適用するには、HTTP 基本認証ポリシーの作成と適用も必要です。これによりエージェントに、LDAP ポリシーで定義された設定を使用して、ログイン情報によるアクセスを行うように要求できます。

## [](#前提条件)前提条件

このドキュメントは、読者が、管理される API バージョンの API バージョン所有であること、または組織システム管理者ロールのメンバーであることを前提としています。

## [](#ldap-セキュリティマネージャーの設定)LDAP セキュリティマネージャーの設定

LDAP セキュリティマネージャーを LDAP または Active Directory に接続するように設定します。すべての項目が必須です。これらのリテラル文字列値では、プロパティプレースホルダーがサポートされます。パスワードをセキュアな値 (一度入力したら表示も取得もできない値) として入力します。

- LDAP Server URL (LDAP サーバー URL)
    
    ポート番号を含む、LDAP サーバーの URL。
- LDAP User DN (LDAP ユーザー DN)
    
    LDAP へのアクセス権を持つユーザーまたはユーザーグループの名前。
- LDAP User Password (LDAP ユーザーパスワード)
    
    ユーザーまたはユーザーグループのパスワード
- LDAP Search Base (LDAP 検索ベース)
    
    ディレクトリツリー内の検索の開始点。
- LDAP Search Filter (LDAP 検索条件)
    
    Active Directory または OpenLDAP モデルの検索条件。以下の例を参照してください。

### [](#active-directory-セキュリティマネージャーの設定例)Active Directory セキュリティマネージャーの設定例

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 33.3333%;">
<col style="width: 33.3333%;">
<col style="width: 33.3334%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">項目</th>
<th class="tableblock halign-left valign-top">リテラル文字列値の例</th>
<th class="tableblock halign-left valign-top">セキュアプロパティプレースホルダーの例</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>LDAP Server URL (LDAP サーバー URL)</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><code>ldap://174.19.33.17:389/</code></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><code>${ldap.server.url}</code></p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>LDAP Server User DN (LDAP サーバーユーザー DN)</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><code>CN=Administrator,CN=Users,DC=my-company,DC=com</code></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><code>${ldap.user.dn}</code></p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>LDAP User Password (LDAP ユーザーパスワード)</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><code>somePassword</code></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><code>${ldap.password}</code></p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>LDAP Search Base (LDAP 検索ベース)</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><code>CN=Users,DC=my-company,DC=com</code></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><code>${ldap.search.base}</code></p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>LDAP Search Filter (LDAP 検索条件)</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><code>(sAMAccountName={0})</code></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><code>${ldap.search.filter}</code></p>
</div></div></td>
</tr>
</tbody>
</table>

上記の検索条件文字列は、Active Directory アプリケーション固有です。

### [](#openldap-セキュリティマネージャーの設定例)OpenLDAP セキュリティマネージャーの設定例

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 33.3333%;">
<col style="width: 33.3333%;">
<col style="width: 33.3334%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">項目</th>
<th class="tableblock halign-left valign-top">リテラル文字列値の例</th>
<th class="tableblock halign-left valign-top">セキュアプロパティプレースホルダーの例</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>LDAP Server URL (LDAP サーバー URL)</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><code>ldaps://my-company-ldap.cloudhub.io:1010/</code></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><code>${ldap.server.url}</code></p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>LDAP Server User DN (LDAP サーバーユーザー DN)</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><code>cn=Manager,dc=my-company,dc=com</code></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><code>${ldap.user.dn}</code></p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>LDAP User Password (LDAP ユーザーパスワード)</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><code>somePassword</code></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><code>${ldap.password}</code></p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>LDAP Search Base (LDAP 検索ベース)</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><code>ou=people,dc=my-company,dc=com</code></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><code>${ldap.search.base}</code></p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><strong>LDAP Search Filter (LDAP 検索条件)</strong></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><code>(uid={0})</code></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><code>${ldap.search.filter}</code></p>
</div></div></td>
</tr>
</tbody>
</table>

**注意**​: 上記の検索条件文字列は、OpenLDAP アプリケーション固有です。

LDAP ポリシーを設定するときにセキュアなプロパティプレースホルダーを使用する場合は、コマンドラインを使用するか、Mule Runtime または Mule ゲートウェイランタイムの ​`wrapper.conf`​ ファイルで、プレースホルダーの値をシステム変数として指定します。

次に例を示します。

```text
# OpenLDAP properties definitions
wrapper.java.additional.7=-Dldap.password=<password here>
wrapper.java.additional.8=-Dldap.user.dn=cn=Manager,dc=my-company,dc=com
wrapper.java.additional.9=-Dldap.search.base=ou=people,dc=my-company,dc=com
wrapper.java.additional.10=-Dldap.search.filter=(uid={0})
wrapper.java.additional.11=-Dldap.server.url=ldaps://my-company-ldap.cloudhub.io:1010/
```

## [](#ldap-セキュリティマネージャーポリシーと基本認証ポリシーの適用)LDAP セキュリティマネージャーポリシーと基本認証ポリシーの適用

実行時にこれらのポリシーをエンドポイントに適用するには、次の手順に従います。

1. API Manager に移動し、ポリシーを適用する API バージョンをクリックします。
2. \[Policies (ポリシー)\] タブをクリックして開きます。
3. LDAP セキュリティマネージャーポリシーを適用し、LDAP に接続するように設定します。
4. HTTP 基本認証ポリシーを適用してセキュリティマネージャーポリシーを適用します。
5. セキュリティポリシーが有効になったこと、つまり、API のエンドポイントで認証が要求されることを確認します。

対象のサービスバージョンまたはエンドポイントにセキュリティマネージャーがすでに設定されていても、LDAP セキュリティマネージャーポリシーを適用して HTTP 基本認証ポリシーで適用できます。API Manager で適用されたセキュリティ管理は、すでに適用されている他のセキュリティマネージャーポリシーを上書きします。

## [](#ldap-セキュリティマネージャーポリシーと基本認証ポリシーの適用解除)LDAP セキュリティマネージャーポリシーと基本認証ポリシーの適用解除

サービスバージョンまたはエンドポイントから LDAP セキュリティマネージャーに基づく HTTP 基本認証を適用解除するには、ポリシーを 1 つずつ適用解除します。

1. HTTP 基本認証ポリシーを適用解除します。
2. LDAP セキュリティマネージャーポリシーを適用解除します。
3. エンドポイントにアクセスして、API が認証を要求しなくなったことを確認します。