# LDAP設定のプロパティ

{% hint style="info" %}
ここに記載したプロパティは、LDAP認証を使用している場合にのみ適用されます。LDAP認証のサポートは、[`kcm-guacamole-auth-ldap`パッケージを使用してインストール](https://docs.keeper.io/glyptodon-1.x/authentication/authenticating-users-with-ldap)します。[keeper/guacamoleのDockerイメージ](/keeper-connection-manager/jp/installation/docker-compose-install/keeper-guacamole.md)を使用する場合、LDAP認証のサポートは、環境変数を使用して設定します。
{% endhint %}

* [TCP接続情報](#id-.ldapconfigurationpropertiesv2.x-tcpconnectioninformation)
* [LDAPユーザー/ユーザーDNの説明](#id-.ldapconfigurationpropertiesv2.x-ldapuser-userdndescription)
* [LDAP検索用ユーザーDN](#id-.ldapconfigurationpropertiesv2.x-ldapusersearchdn)
* [LDAPグループ/グループDNの説明](#id-.ldapconfigurationpropertiesv2.x-ldapgroup-groupdndescription)
* [Guacamole接続のベースDN（guacConfigGroup）](#id-.ldapconfigurationpropertiesv2.x-basednforguacamoleconnections-guacconfiggroup)
* [LDAP検索結果の制限](#id-.ldapconfigurationpropertiesv2.x-ldapsearchresultlimits)
* [LDAPユーザー属性](#id-.ldapconfigurationpropertiesv2.x-ldapuserattributes)
* [カスタムLDAP検索フィルタ](#id-.ldapconfigurationpropertiesv2.x-customldapsearchfilters)
* [LDAPエイリアスとリファラル（紹介）](#id-.ldapconfigurationpropertiesv2.x-ldapaliasesandreferrals)

### TCP接続情報 <a href="#id-.ldapconfigurationpropertiesv2.x-tcpconnectioninformation" id="id-.ldapconfigurationpropertiesv2.x-tcpconnectioninformation"></a>

LDAPサーバーのTCP接続の詳細と、暗号化使用の要否。

| プロパティ名（[`guacamole.properties`](/keeper-connection-manager/jp/advanced-configuration/guacamole.properties/ldap-configuration-properties.md)） | プロパティ名（[`ldap-servers.yml`](https://newdocs.keeper.io/kcm-linux-rpm-method/authentication/authenticating-users-with-ldap/using-multiple-ldap-servers)） | デフォルト値              | 説明                                                                                                                                                                                              |
| -------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `ldap-hostname`                                                                                                                              | `hostname`                                                                                                                                             | localhost           | LDAPサーバーのホスト名/アドレス。                                                                                                                                                                             |
| `ldap-port`                                                                                                                                  | `port`                                                                                                                                                 | 389、またはLDAPSの場合は636 | LDAPサーバーの待ち受けTCPポート。                                                                                                                                                                            |
| `ldap-encryption-method`                                                                                                                     | `encryption-method`                                                                                                                                    | `none`              | <p>LDAPサーバーと通信するときに使用する暗号化方式。有効な暗号化方式は以下のとおりです。</p><ul><li><code>none</code>（非暗号化LDAP用）</li><li><code>ssl</code>（LDAP over SSL/TLS、別名LDAPS用）</li><li><code>starttls</code>（STARTTLS用）</li></ul> |

### LDAPユーザー/ユーザーDNの説明 <a href="#id-.ldapconfigurationpropertiesv2.x-ldapuser-userdndescription" id="id-.ldapconfigurationpropertiesv2.x-ldapuser-userdndescription"></a>

LDAPディレクトリ内のすべてのGuacamoleユーザーのベースDN、および各ユーザーのユーザー名を含む属性。ユーザー名属性がDNに含まれない場合は、検索DNも設定する必要があります。

| プロパティ名（[`guacamole.properties`](/keeper-connection-manager/jp/advanced-configuration/guacamole.properties/ldap-configuration-properties.md)） | プロパティ名（[`ldap-servers.yml`](https://newdocs.keeper.io/kcm-linux-rpm-method/authentication/authenticating-users-with-ldap/using-multiple-ldap-servers)） | デフォルト値 | 説明                                                                                                                                                                                                             |
| -------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `ldap-user-base-dn`                                                                                                                          | `user-base-dn`                                                                                                                                         | なし     | 関連するすべてのLDAPユーザーが含まれる可能性のあるベースDN。検索DNを使用しない場合、このDNは、ユーザー名属性を追加できるすべてのユーザーが共有するDNの共通部分になる必要があります。                                                                                                               |
| `ldap-username-attribute`                                                                                                                    | `username-attribute`                                                                                                                                   | uid    | ユーザーのユーザー名を含む属性。OpenLDAPの場合、通常、「uid」のデフォルト値が適正です。Active Directoryの場合、適正値は通常、「sAMAccountName」で、[ユーザー名の間接マッピングにより、検索DNが必要](/keeper-connection-manager/jp/authentication/authenticating-users-with-ldap.md)になります。 |

### LDAPユーザー検索DN <a href="#id-.ldapconfigurationpropertiesv2.x-ldapusersearchdn" id="id-.ldapconfigurationpropertiesv2.x-ldapusersearchdn"></a>

ログインを試みる各ユーザーのDNを検索する場合と同様の、バインドするユーザーのDNとパスワード。省略した場合、各ユーザーのDNは、ユーザーのベースDNとユーザー名属性を使用して直接取得されます。

| プロパティ名（[`guacamole.properties`](/keeper-connection-manager/jp/advanced-configuration/guacamole.properties/ldap-configuration-properties.md)） | プロパティ名（[`ldap-servers.yml`](https://newdocs.keeper.io/kcm-linux-rpm-method/authentication/authenticating-users-with-ldap/using-multiple-ldap-servers)） | 説明                                                                                                                                                                                                                                                                                                                                                                                                                            |
| -------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `ldap-search-bind-dn`                                                                                                                        | `search-bind-dn`                                                                                                                                       | 認証するユーザーのDNを解決しようとする場合と同様の、Guacamoleがバインドする必要のあるユーザーのDN（[間接ユーザー名マッピング](/keeper-connection-manager/jp/authentication/authenticating-users-with-ldap.md)）。省略した場合、各ユーザーのDNは、[ベースDNとユーザー名属性から直接取得](/keeper-connection-manager/jp/authentication/authenticating-users-with-ldap.md)されます。このアカウントに関連付けられた権限は、ユーザーがLDAPディレクトリ内のオブジェクトを表示できるか否かには影響しないことにご注意ください。ユーザー、接続などは、それらのユーザーにLDAP内のオブジェクトを表示する権限が付与されている場合にのみ、LDAPユーザーに表示されます。 |
| `ldap-search-bind-password`                                                                                                                  | `search-bind-password`                                                                                                                                 | 認証するユーザーのDNを解決するために、Guacamoleが設定された検索DNとバインドするときに指定する必要のあるパスワード。                                                                                                                                                                                                                                                                                                                                                              |

### LDAPグループ/グループDNの説明 <a href="#id-.ldapconfigurationpropertiesv2.x-ldapgroup-groupdndescription" id="id-.ldapconfigurationpropertiesv2.x-ldapgroup-groupdndescription"></a>

LDAPディレクトリ内のすべてのGuacamoleユーザーグループのベースDN、および各グループ名を含む属性。接続情報をLDAP内に格納する場合、設定されたベースDNには、「seeAlso」属性を使用して、「guacConfigGroup」オブジェクト内で参照できるグループもすべて含まれている必要があります。

| プロパティ名（[`guacamole.properties`](/keeper-connection-manager/jp/advanced-configuration/guacamole.properties/ldap-configuration-properties.md)） | プロパティ名（[`ldap-servers.yml`](https://newdocs.keeper.io/kcm-linux-rpm-method/authentication/authenticating-users-with-ldap/using-multiple-ldap-servers)） | デフォルト値 | 説明                                                                                                                                                                                                                                       |
| -------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `ldap-group-base-dn`                                                                                                                         | `group-base-dn`                                                                                                                                        | なし     | <p>関連するすべてのLDAPグループが含まれる可能性のあるベースDN。ログイン時に<strong>ユーザー自身のクレデンシャルを使用</strong>して、このツリーを検索して、グループメンバーシップが決定されます。</p><p>接続情報をLDAP内に格納する場合、これは「seeAlso」属性を使用して指定された「guacConfigGroup」メンバーシップを求めて検索する必要があるLDAPディレクトリサブツリーのベースDNでもあることが必要です。</p> |
| `ldap-group-name-attribute`                                                                                                                  | `group-name-attribute`                                                                                                                                 | cn     | グループ名を含む属性。Active Directoryを含むほとんどのLDAPサーバーでは、通常、デフォルト値の「cn」が適正です。                                                                                                                                                                       |

### Guacamole接続のベースDN（guacConfigGroup） <a href="#id-.ldapconfigurationpropertiesv2.x-basednforguacamoleconnections-guacconfiggroup" id="id-.ldapconfigurationpropertiesv2.x-basednforguacamoleconnections-guacconfiggroup"></a>

[「guacConfigGroup」オブジェクトを使用して、LDAPディレクトリ内で直接定義された](/keeper-connection-manager/jp/authentication/authenticating-users-with-ldap/storing-connection-data-within-ldap.md)すべてのGuacamole接続のベースDN。「guacConfigGroup」オブジェクトのLDAPスキーマファイルは、`/usr/share/guacamole-auth-ldap/schema`内にあり、LDIF形式と.schema形式の両方が用意されています。[接続をLDAPディレクトリ内に直接格納するかどうかは随意である](/keeper-connection-manager/jp/authentication/authenticating-users-with-ldap/using-ldap-with-a-database.md)ことにご注意ください。**ディレクトリ内に接続を格納しない場合は、このベースDNを指定しないでください。**

| プロパティ名（[`guacamole.properties`](/keeper-connection-manager/jp/advanced-configuration/guacamole.properties/ldap-configuration-properties.md)） | プロパティ名（[`ldap-servers.yml`](https://newdocs.keeper.io/kcm-linux-rpm-method/authentication/authenticating-users-with-ldap/using-multiple-ldap-servers)） | 説明                                                                                                                                        |
| -------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------- |
| `ldap-config-base-dn`                                                                                                                        | `config-base-dn`                                                                                                                                       | ディレクトリ内に直接格納されている接続を求めて検索する必要のあるLDAPサブツリーのベースDN（「guacConfigGroup」オブジェクト）。接続がLDAPディレクトリ内に保存されていない（スキーマの変更が適用されていない）場合は、このプロパティを指定しないでください。 |

### LDAP検索結果の制限 <a href="#id-.ldapconfigurationpropertiesv2.x-ldapsearchresultlimits" id="id-.ldapconfigurationpropertiesv2.x-ldapsearchresultlimits"></a>

1回のクエリで返すことができるLDAP検索結果の最大数。LDAP検索結果がこの制限を超えると失敗します。

| プロパティ名（[`guacamole.properties`](/keeper-connection-manager/jp/advanced-configuration/guacamole.properties/ldap-configuration-properties.md)） | プロパティ名（[`ldap-servers.yml`](https://newdocs.keeper.io/kcm-linux-rpm-method/authentication/authenticating-users-with-ldap/using-multiple-ldap-servers)） | デフォルト値 | 説明                                                             |
| -------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------ | -------------------------------------------------------------- |
| `ldap-max-search-results`                                                                                                                    | `max-search-results`                                                                                                                                   | 1000   | 1回のクエリで取得するLDAP検索結果の最大数。デフォルトでは、LDAP検索結果は最大1000エントリーに制限されています。 |

### LDAPユーザー属性 <a href="#id-.ldapconfigurationpropertiesv2.x-ldapuserattributes" id="id-.ldapconfigurationpropertiesv2.x-ldapuserattributes"></a>

任意のLDAPユーザー属性を使用して、接続にアクセスするユーザーに応じて、接続の動作を動的に変更することができます。ユーザーがLDAPで認証された後、特定のGuacamole接続にアクセスすると、これらの属性の値がパラメータトークンとして提供され、接続のパラメータに適用されます。属性に現在のユーザーの値が含まれない場合、対応するトークンは適用されません。属性に複数の値が含まれる場合は、属性の最初の値が使用されます。

これらの属性は、/etc/guacamole/`guacamole.properties`内に明示的に記載して、事前にパラメータトークンとして使用するように設定する必要があります。デフォルトでは、パラメータトークンとして提供されるLDAPユーザー属性はありません。

| プロパティ名（[`guacamole.properties`](/keeper-connection-manager/jp/advanced-configuration/guacamole.properties/ldap-configuration-properties.md)） | プロパティ名（[`ldap-servers.yml`](https://newdocs.keeper.io/kcm-linux-rpm-method/authentication/authenticating-users-with-ldap/using-multiple-ldap-servers)） | 説明                                                                                                                                                |
| -------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| `ldap-user-attributes`                                                                                                                       | `user-attributes`                                                                                                                                      | LDAPを使用して認証するユーザーのために、LDAPディレクトリから取得する1つまたは複数の属性（コンマ区切り）。指定した場合、ここに記載した属性は認証された各ユーザーから取得され、先頭に「`LDAP_`」の付いたパラメータトークンとして、そのユーザーの接続パラメータに動的に適用されます。 |

LDAP属性名をパラメータトークン名に変換する場合、属性名は各単語を下線で区切った大文字に変換されます。この命名規則は、「アンダースコア付き大文字」または「[大文字スネークケース](https://en.wikipedia.org/wiki/Naming_convention_\(programming\)#Multiple-word_identifiers)」と呼ばれます。以下に例を示します。

| LDAP属性                             | パラメータトークン                                      |
| ---------------------------------- | ---------------------------------------------- |
| `lowercase-with-dashes`            | `${LDAP_LOWERCASE_WITH_DASHES}`                |
| `CamelCase`                        | `${LDAP_CAMEL_CASE}`                           |
| `headlessCamelCase`                | `${LDAP_HEADLESS_CAMEL_CASE}`                  |
| `lettersAndNumbers1234`            | `${LDAP_LETTERS_AND_NUMBERS_1234}`             |
| `aRANDOM_mixOf-3NAMINGConventions` | `${LDAP_A_RANDOM_MIX_OF_3_NAMING_CONVENTIONS}` |

### カスタムLDAP検索フィルタ <a href="#id-.ldapconfigurationpropertiesv2.x-customldapsearchfilters" id="id-.ldapconfigurationpropertiesv2.x-customldapsearchfilters"></a>

LDAPディレクトリからユーザーまたはグループのリストを取得するために使用する検索フィルタ。デフォルトでは、すべてのオブジェクトに一致するフィルタが使用されます。制限が加えられるのは、関連するベースDNを使用した場合のみです。ユーザーまたはグループのリストをさらに絞り込む必要がある場合は、デフォルトのフィルタをオーバーライドできます。

検索フィルタをオーバーライドする場合は、**フィルタが有効なLDAPフィルタであることをご確認ください**。特に、LDAPフィルタは対応する括弧のペアで囲む必要があります。フィルタが有効かどうか不明な場合、または予期しない結果が表示された場合は、「`ldapsearch`」などのコマンドラインユーティリティを使用して、フィルタをLDAPサーバーで検証するとうまくいく場合があります。

| プロパティ名（[`guacamole.properties`](/keeper-connection-manager/jp/advanced-configuration/guacamole.properties/ldap-configuration-properties.md)） | プロパティ名（[`ldap-servers.yml`](https://newdocs.keeper.io/kcm-linux-rpm-method/authentication/authenticating-users-with-ldap/using-multiple-ldap-servers)） | デフォルト値            | 説明                                                                                                                                                                                     |
| -------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `ldap-user-search-filter`                                                                                                                    | `user-search-filter`                                                                                                                                   | `(objectClass=*)` | LDAPディレクトリからユーザーのリストを取得するために使用する検索フィルタ。検索DNを使用する場合（[間接ユーザーマッピング](/keeper-connection-manager/jp/authentication/authenticating-users-with-ldap.md)）、このフィルタでGuacamoleにログインできるユーザーも制限されます。 |
| `ldap-group-search-filter`                                                                                                                   | `group-search-filter`                                                                                                                                  | `(objectClass=*)` | グループのリストを取得するために使用する検索フィルタで、権限を定義するために他の拡張機能が使用する場合もあります。                                                                                                                              |

### LDAPエイリアスとリファラル（紹介） <a href="#id-.ldapconfigurationpropertiesv2.x-ldapaliasesandreferrals" id="id-.ldapconfigurationpropertiesv2.x-ldapaliasesandreferrals"></a>

GuacamoleがLDAPクエリ中に提示されたLDAPエイリアスまたはリファラルに従うか否か（およびその方法）。デフォルトでは、Guacamoleはエイリアスの参照は外さず、リファラルに従いません。

| プロパティ名（[`guacamole.properties`](/keeper-connection-manager/jp/advanced-configuration/guacamole.properties/ldap-configuration-properties.md)`）` | プロパティ名（[`ldap-servers.yml`](https://newdocs.keeper.io/kcm-linux-rpm-method/authentication/authenticating-users-with-ldap/using-multiple-ldap-servers)） | デフォルト値 | 説明                                                                                                                                                                                                                                                                                                |
| ---------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `ldap-dereference-aliases`                                                                                                                     | `dereference-aliases`                                                                                                                                  | never  | <p>LDAPエイリアスがあっても、参照を外すためにGuacamoleが使用するメソッド。正規のエイリアスの参照外しモードは以下のとおりです。</p><ul><li><code>never</code>（エイリアスの参照を外しません）</li><li><code>searching</code>（検索ベースが見つかった場合のみエイリアスの参照を外します）</li><li><code>finding</code>（検索ベースを探す場合のみエイリアスの参照を外します）</li><li><code>always</code>（常にエイリアスの参照を外します）</li></ul> |
| `ldap-follow-referrals`                                                                                                                        | `follow-referrals`                                                                                                                                     | false  | 「true」に設定すると、LDAPディレクトリから受信したリファラルに自動的に従います。デフォルトでは、リファラルには従いません。                                                                                                                                                                                                                                 |
| `ldap-max-referral-hops`                                                                                                                       | `max-referral-hops`                                                                                                                                    | 5      | LDAPクエリを中止するまでに従うリファラルの最大数。このプロパティは、LDAPリファラル追跡が有効な場合にのみ効果があります。リファラル追跡が有効になっている場合、追跡の実行はデフォルトで5ホップに制限されます。                                                                                                                                                                                       |


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.keeper.io/keeper-connection-manager/jp/advanced-configuration/guacamole.properties/ldap-configuration-properties.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
