> For the complete documentation index, see [llms.txt](https://docs.keeper.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.keeper.io/keeper-connection-manager/jp/authentication/authenticating-users-with-ldap/using-multiple-ldap-servers.md).

# 複数のLDAPサーバーの使用

KCMで複数のLDAPサーバーを使用

## 自動DockerまたはDocker Compose <a href="#auto-docker-or-docker-compose" id="auto-docker-or-docker-compose"></a>

DockerバージョンのKCMを使用する際、以下のように `docker-compose.yml` ファイル内の `guacamole` サービスの `environment` セクションで環境変数 `LDAP_SERVERS` を使用して、複数のLDAPサーバーを記載できます。

```
version: "3"
services:
    guacamole:
        image: keeper/guacamole:2
        restart: unless-stopped
        depends_on:
            - guacd
            - db
        environment:
            ACCEPT_EULA: "Y"
            GUACD_HOSTNAME: "guacd"
            LDAP_SERVERS: |
              - hostname: server1.example.net
                user-base-dn: OU=Users,DC=example,DC=net
                username-attribute: sAMAccountName
                search-bind-dn: CN=Guacamole,OU=Services,DC=example,DC=net
                search-bind-password: SomePassword!

              - hostname: server2.example.net
                user-base-dn: OU=Users,DC=example,DC=net
                username-attribute: sAMAccountName
                search-bind-dn: CN=Guacamole,OU=Services,DC=example,DC=net
                search-bind-password: SomePassword! 
                
```

{% hint style="info" %}
`LDAP_SERVERS` を使用すると、`guacamole` コンテナ内に `/etc/guacamole/ldap-servers.yml` が自動的に作成されます。
{% endhint %}

{% hint style="warning" %}
`docker-compose.yml` で `LDAP_SERVERS` を使用する際は、`ldap-servers.yml` ファイルをボリュームマウントしないでください (自動的に処理されます)。高度なインストールまたはDocker以外のインストールについては、[こちらのページ](/keeper-connection-manager/jp/authentication/authenticating-users-with-ldap/storing-connection-data-within-ldap.md)をご参照ください。
{% endhint %}


---

# 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.keeper.io/keeper-connection-manager/jp/authentication/authenticating-users-with-ldap/using-multiple-ldap-servers.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.
