---
schema_version: "1"
id: 976d168b9a7a193e1a3e980e779585e2dd17b7ff985642729f5b665d1119ffb0
title: 外部識別身分存放區設定參考資料
collection: tableau
version: next
locale: zh-tw
portal_url: https://docs.salesforce.com/tableau/next/zh-tw/server/ldap_config.md
canonical_url: https://help.tableau.com/v0.0/server/zh-tw/ldap_config.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 3f0c9e5ec7c1e3e9d07c87b15202a85f46b0eef3aa10ba1dd0e311a65c69d33e
description: Reference for configuring an external LDAP identity store for Tableau Server.
---
[跳至主要內容](#main-content)

# 外部識別身分存放區設定參考資料

Tableau Server 支援使用 LDAP 連線至外部目錄。在這種情況下，Tableau Server 會將使用者從外部 LDAP 目錄匯入 Tableau Server 存放庫作為系統使用者。

本主題將提供 Tableau Server 支援的所有 LDAP 相關設定選項的說明。如果要連線至 Active Directory，我們強烈建議您將 LDAP 與 Tableau Server 的連線自動設定為安裝程式的一部分，而不是手動設定連線。請參閱[設定初始節點設定](https://help.tableau.com/v0.0/server/zh-tw/config_general.htm)。

此參考資料中列出的選項可用於任何符合 LDAP 的目錄。如果您沒有設定 LDAP 的經驗，可與目錄管理員或 LDAP 專家合作。

這是一個參考主題。有關 Tableau Server 如何儲存與管理使用者的詳情，請先參閱[身分存放區](https://help.tableau.com/v0.0/server/zh-tw/plan_identity_store.htm)。

## 設定方法

能夠使 Tableau Server 連線至 LDAP 目錄的設定參數均儲存在 .yml 檔案中。這些檔案由 Tableau Server 中的各種服務進行管理和同步。更新 .yml 檔案時，必須使用 Tableau 服務管理員 (TSM) 介面。

不要嘗試使用文字編輯器直接更新 .yml 檔案。TSM 必須管理所有更新，以確保正常運作。

.yml 組態檔由金鑰值組組成。例如，金鑰 `wgserver.domain.username` 以使用者名稱為值。此金鑰可定義將用於在繫結操作期間對 LDAP 目錄進行驗證的使用者名稱。

有四種不同的 TSM 方法可以設定 yml 金鑰值。此處以 `wgserver.domain.username` 金鑰為例對這四種不同的方法進行說明︰

- configKey 金鑰值組— 可以透過更新執行 [tsm configuration set 選項](https://help.tableau.com/v0.0/server/zh-tw/cli_configuration-set_tsm.htm) 的 `wgserver.domain.username` 金鑰，或將金鑰包含在 configKey 實體下的 JSON 組態檔中，來更新 .yml 組態檔金鑰。請參閱[組態檔範例](https://help.tableau.com/v0.0/server/zh-tw/config_file_example.htm)。
    
    JSON 組態檔中的 configKey 金鑰值組與用於 `tsm configuration set` 的金鑰值組相同，但設定不同。本主題將這兩種方法稱為 _configKey。_
    
    與使用下方所述的 configEntities 和原生 tsm 命令時不同，系統不會對 configKey 輸入進行驗證。當您透過 configKey 設定選項時，您輸入的值會作為常值字串複製到基礎 .yml 組態檔。例如，對於有效輸入為 `true` 或 `false` 的金鑰，使用 configKey 金鑰值組設定金鑰時，可以輸入任意字串值，並將其儲存為金鑰。在此類情況下，無效值無疑會導致 LDAP 設定錯誤。
    
    我們建議僅在不存在選項的情況下使用 configKeys 進行設定，包括下面列出的其他三個選項（configEntities、原生 tsm 命令或 TSM Web UI）。使用 configKeys 時，請務必仔細檢查您的值，並注意區分大小寫。
- configEntities JSON— 可以透過傳遞 _configEntities_ JSON 中的 `username` 選項來更新 .yml 組態檔。
    
    使用 JSON 檔案中的 configEntities 選項設定值時，系統會在儲存值之前對其進行驗證。輸入的值區分大小寫。有關如何使用 configEntities 設定值的詳細資訊，請參閱 [identityStore 實體](https://help.tableau.com/v0.0/server/zh-tw/entity_identity_store.htm)範例。JSON 檔案透過 [tsm settings import](https://help.tableau.com/v0.0/server/zh-tw/cli_settings_tsm.htm#TSMSet) 命令匯入。可用於 configEntities 的選項是所有 .yml 金鑰值組的子集。
    
    驗證意味著僅當 JSON 檔案中的所有值均為有效的資料類型時，匯入命令才會成功。例如，如果為僅接受 `true` 或 `false` 值的輸入 `no`，則您將會收到錯誤訊息，並且不會匯入設定。
    
    只能將 JSON 組態檔作為初始設定的一部分匯入。如果在匯入 JSON 組態檔並初始化 Tableau Server 後需要進行 LDAP 變更，請不要嘗試重新匯入 JSON 檔案。相反，請使用原生 tsm 命令（若可用）或使用 configKeys 和 `tsm configuration set` 對單個金鑰進行變更。
- 原生 tsm 命令— 可以透過將 `ldapuser` 選項與_原生 tsm 命令_ `[tsm user-identity-store](https://help.tableau.com/v0.0/server/zh-tw/cli_user-identity_tsm.htm)` 一起傳遞來更新 .yml 組態檔。與 configEntities 一樣，透過原生 tsm 命令輸入的值會在儲存之前驗證。
    
    並非可以使用原生 tsm 命令設定 .yml 檔案中的所有金鑰值組。
- TSM GUI— 可以在安裝過程中使用 TSM GUI 來設定組態值。若要連線到 Active Directory，並在安裝過程中使用 GUI 設定 Tableau 身分存放區，則會提示您需要具有 AD 讀取存取權限的帳戶。`wgserver.domain.username` 金鑰會在輸入認證時設定。
    
    這種情況僅在連線至 Active Directory 時適用。Tableau Server 不支援任意 LDAP 設定作為 GUI 安裝程式的一部分。

考慮使用 [Tableau 識別身份存放區組態工具](https://tagyoureit.github.io/tableau-identitystore-config-tool/)來產生 LDAP json 組態檔。Tableau 識別身份存放區組態工具也會產生您可以透過執行 [tsm configuration set 選項](https://help.tableau.com/v0.0/server/zh-tw/cli_configuration-set_tsm.htm) 的金鑰/值組清單。Tableau 不支援工具本身。但使用工具建立的 JSON 檔案，而不是手動建立檔案，不會變更伺服器的支援狀態。

## 設定 Active Directory

若要將 Tableau Server 設定為使用 Active Directory，建議使用 TSM Web UI 安裝。TSM Web UI 已進行最佳化以透過最少必要輸入設定 Tableau Server Active Directory。請參閱[設定初始節點設定](https://help.tableau.com/v0.0/server/zh-tw/config_general.htm)。

## 設定參考表

<table style="width: 100%;" class="simple-table"><colgroup><col style="width: 15%;"><col style="width: 15%;"><col style="width: 20%;"><col style="width: 10%;"><col style="width: 161px;"></colgroup><tbody><tr><th><p>configEntities 選項</p><p>（選項區分大小寫）</p></th><th>原生 tsm 命令</th><th><p>configKey</p><p>（與 tsm configuration set 命令一起使用或在 JSON 檔案的 configKeys 部分中使用）</p></th><th>案例</th><th><p>說明</p></th></tr><tr><td>type</td><td>不適用</td><td>wgserver.authenticate</td><td>AD、LDAP、本機</td><td>您想要在其中存放使用者身分資訊的位置。值：<code>local</code> 或 <code>activedirectory</code>。<p>如果要連線到任何 LDAP 伺服器，請輸入 <code>activedirectory</code>。</p></td></tr><tr><td>sslPort</td><td>不適用</td><td>wgserver.domain.ssl_port</td><td>AD、LDAP</td><td>使用此選項指定 LDAP 伺服器的安全埠。我們建議使用安全 LDAP 進行簡單繫結。LDAPS 通常使用埠 636。</td></tr><tr><td>port</td><td>不適用</td><td>wgserver.domain.port</td><td>AD、LDAP</td><td>使用此選項指定 LDAP 伺服器的非安全埠。明文通常使用 389。</td></tr><tr><td>domain</td><td>domain</td><td>wgserver.domain.default</td><td>AD</td><td>在 Active Directory 環境中，指定安裝 Tableau Server 所在的網域，例如「example.lan」。<p>對於非 AD LDAP︰您為此值輸入的字串會顯示在使用者管理工具的「網域」欄中。您可以輸入任意字串，但金鑰不能為空白。</p><p>此金鑰與 wgserver.domain.fqdn 重複。兩個金鑰的值必須相同。</p><p>原生 tsm 命令：使用 <a href="https://help.tableau.com/v0.0/server/zh-tw/cli_user-identity_tsm.htm#TSMSetConnection" class="xref">tsm user-identity-store set-connection [options]</a> 命令。</p></td></tr><tr><td>username</td><td>ldapusername</td><td>wgserver.domain.username</td><td>AD、LDAP</td><td>要用於連線到目錄服務的使用者名。<p>您指定的帳戶必須擁有查詢目錄服務的權限。</p><p>對於 Active Directory，請輸入使用者名稱，例如，<code>jsmith</code>。</p><p>對於 LDAP 伺服器，請輸入進行連線所要使用的使用者可分辨名稱 (DN)。例如，<code>"cn=jsmith,dc=example,dc=lan"</code>。</p><p>原生 tsm 命令：使用 <a href="https://help.tableau.com/v0.0/server/zh-tw/cli_user-identity_tsm.htm#TSMSetConnection" class="xref">tsm user-identity-store set-connection [options]</a> 命令。</p></td></tr><tr><td>password</td><td>ldappassword</td><td>wgserver.domain.password</td><td>AD、LDAP</td><td>要用於連線到 LDAP 伺服器的使用者帳戶密碼。<p>原生 tsm 命令：使用 <a href="https://help.tableau.com/v0.0/server/zh-tw/cli_user-identity_tsm.htm#TSMSetConnection" class="xref">tsm user-identity-store set-connection [options]</a> 命令。</p></td></tr><tr><td>directoryServiceType</td><td>不適用</td><td>wgserver.domain.directoryservice.type</td><td>AD、LDAP</td><td>要連線到的 LDAP 目錄服務的類型。值：<code>activedirectory</code> 或 <code>openldap</code>。</td></tr><tr><td>kerberosPrincipal</td><td>kerbprincipal</td><td>wgserver.domain.ldap.principal</td><td>AD、LDAP</td><td>Tableau Server 在主機電腦上的服務主要名稱。Keytab 必須具有此主體的使用權限。不要使用系統的現有 keytab 。相反，我們建議您註冊一個新的服務主要名稱。若要查看給定 keytab 中的主體，請執行 <code>klist -k</code> 命令。請參閱<a href="https://help.tableau.com/v0.0/server/zh-tw/kerberos_keytab.htm" class="xref">瞭解 keytab 需求</a>。<p>原生 tsm 命令：使用 <a href="https://help.tableau.com/v0.0/server/zh-tw/cli_user-identity_tsm.htm#TSMSetConnection" class="xref">tsm user-identity-store set-connection [options]</a> 命令。</p></td></tr><tr><td>hostname</td><td>hostname</td><td>wgserver.domain.ldap.hostname</td><td>AD、LDAP</td><td>LDAP 伺服器的主機名稱。您可以針對該值輸入主機名稱或 IP 位址。您在這裡指定的主機將用於主要網域上的使用者/群組查詢。如果使用者/群組查詢位於其他網域中，Tableau Server 將查詢 DNS 以識別適當的網域控制器。<p>原生 tsm 命令：使用 <a href="https://help.tableau.com/v0.0/server/zh-tw/cli_user-identity_tsm.htm#TSMSetConnection" class="xref">tsm user-identity-store set-connection [options]</a> 命令。</p></td></tr><tr><td>membersRetrievalPageSize</td><td>不適用</td><td>wgserver.domain.ldap.members.retrieval.page.size</td><td>AD、LDAP</td><td><p>此選項會決定 LDAP 查詢傳回的最大結果數量。</p><p>例如，考慮 Tableau Server 匯入包含 50,000 個使用者的 LDAP 群組的情景。在單一作業中嘗試匯入如此大量的使用者不是最佳作法。當此選項設定為 1500 時，Tableau Server 將在第一次回應時先匯入 1500 個使用者。在處理這些使用者之後，Tableau Server 會從 LDAP 伺服器要求下一批 1500 個使用者，以此類推。</p><p>建議您僅根據您的 LDAP 伺服器需求修改此選項。</p></td></tr><tr><td>不適用</td><td>不適用</td><td>wgserver.domain.ldap.connectionpool.enabled</td><td>AD、LDAP</td><td>當此選項設定為 <code>true</code> 時，Tableau Server 在傳送查詢至 LDAP 伺服器時，會嘗試重複使用相同的連線。此行為會降低在每個新要求中，與 LDAP 伺服器重新驗證有關的額外負荷。連線共用只能與簡單的繫結和 TSL/SSL 繫結連線搭配使用。GSSAPI 繫結連線不支援連線共用。</td></tr><tr><td>不適用</td><td>不適用</td><td>wgserver.domain.accept_list</td><td>AD</td><td>允許從 Tableau Server 連線至從屬 Active Directory 網域。從屬網域是 Tableau Server 連線的目的地，藉此進行使用者同步作業，不過卻是尚未安裝 Tableau Server 的網域。為了確保　Tableau Server 可連線至其他　Active Directory 網域，您必須藉由透過　TSM 設定 <code>wgserver.domain.accept_list</code> 選項，以指定受信任的網域。有關詳情，請參閱 <a href="https://help.tableau.com/v0.0/server/zh-tw/cli_configuration-set_tsm.htm#wgserver-domain-acceptlist" class="xref">wgserver.domain.accept_list</a>。</td></tr><tr><td>不適用</td><td>不適用</td><td><p>wgserver.domain.whitelist</p></td><td>AD</td><td><p><strong>重要資訊：</strong>從版本 2020.4.0 開始，已棄用。請改用 wgserver.domain.accept_list。</p><p>允許從 Tableau Server 連線至從屬 Active Directory 網域。從屬網域是 Tableau Server 連線的目的地，藉此進行使用者同步作業，不過卻是尚未安裝 Tableau Server 的網域。為了確保　Tableau Server 可連線至其他　Active Directory 網域，您必須藉由透過　TSM 設定 <code>wgserver.domain.whitelist</code> 選項，以指定受信任的網域。有關詳情，請參閱　<a href="https://help.tableau.com/v0.0/server/zh-tw/cli_configuration-set_tsm.htm#wgserver-domain" class="xref">wgserver.domain.whitelist</a>。</p></td></tr><tr><td>kerberosConfig</td><td><p>kerbconfig</p></td><td>無直接對應</td><td>AD、LDAP</td><td><p>本機電腦上 Kerberos 組態檔的路徑。如果要安裝到 Active Directory 目錄，我們不建議使用現有 Kerberos 組態檔或聯接域的電腦上已有的 keytab 檔案。請參閱<a href="https://help.tableau.com/v0.0/server/zh-tw/plan_identity_store.htm" class="xref">身分存放區</a></p><p>原生 tsm 命令：使用 <a href="https://help.tableau.com/v0.0/server/zh-tw/cli_user-identity_tsm.htm#TSMSetConnection" class="xref">tsm user-identity-store set-connection [options]</a> 命令。</p></td></tr><tr><td>kerberosKeytab</td><td>kerbkeytab</td><td>無直接對應</td><td>AD、LDAP</td><td><p>本機電腦上 Kerberos  keytab 檔案的路徑。建議您建立一個包含專門用於 Tableau Server 服務的金鑰的 keytab 檔案，並且不要與電腦上的其他應用程式共用此 keytab 檔案。</p><p>原生 tsm 命令：使用 <a href="https://help.tableau.com/v0.0/server/zh-tw/cli_user-identity_tsm.htm#TSMSetConnection" class="xref">tsm user-identity-store set-connection [options]</a> 命令。</p></td></tr><tr><td>nickname</td><td>不適用</td><td>wgserver.domain.nickname</td><td>AD、LDAP</td><td><p>網域的昵稱。這在 Windows/Active Directory 環境中也稱為 NetBIOS 名稱。所有 LDAP 實體都需要 <code>nickname</code> 選項。該值不能為空。如果您的組織不需要昵稱/NetBIOS，則傳遞一個空白鍵，例如：<code>""</code>。</p></td></tr><tr><td>根</td><td>不適用</td><td>wgserver.domain.ldap.root</td><td>LDAP</td><td>如果您在 LDAP 根中未使用 dc 元件，或者您想要指定更複雜的根，則需要設定 LDAP 根。使用「o=my,u=root」格式。例如，對於網域，<code>example.lan</code> 根則為 <code>"o=example,u=lan"</code>。</td></tr><tr><td>serverSideSorting</td><td>不適用</td><td>wgserver.domain.ldap.server_side_sorting</td><td>LDAP</td><td>是否為查詢結果的伺服器端排序設定了 LDAP 伺服器。如果 LDAP 伺服器支援伺服器端排序，請將此選項設定為 <code>true</code>。如果您不確定 LDAP 伺服器是否支援這種情況，請輸入 <code>false</code>，不當設定可能會造成錯誤。</td></tr><tr><td>rangeRetrieval</td><td>不適用</td><td>wgserver.domain.ldap.range_retrieval</td><td>LDAP</td><td>LDAP 伺服器是否設定為返回請求查詢結果的範圍。這意味著具有多個使用者的群組將以小型集合要求，而不是所有使用者一次性要求。支援範圍擷取的 LDAP 伺服器在執行大型查詢時效能更好。如果 LDAP 伺服器支援範圍擷取，請將此選項設定為 <code>true</code>。如果您不確定 LDAP 伺服器是否支援範圍擷取，請輸入 <code>false</code>，不當設定可能會造成錯誤。</td></tr><tr><td>bind</td><td>不適用</td><td>wgserver.domain.ldap.bind</td><td>LDAP</td><td>要用於保護目錄服務通訊的方式。除非使用 Kerberos 連線到 LDAP 伺服器，否則請為 LDAP 輸入 <code class="highlighter-rouge">simple</code>。對於 Kerberos，輸入 <code class="highlighter-rouge">gssapi</code>。</td></tr><tr><td>不適用</td><td>不適用</td><td>wgserver.domain.ldap.domain_custom_ports</td><td>LDAP</td><td><p class="note"><strong>附註</strong>：此金鑰僅支援 Linux 版 Tableau Server。</p><p>這可讓您對應子網域及其 LDAP 連接埠。網域與連接埠需以冒號 (:) 分隔，且每個「網域:連接埠」組都要以逗號 (,) 分隔，格式如下：<code>FQDN1:port,FQDN2:port</code></p><p>範例：<code>tsm configuration set -k wgserver.domain.ldap.domain_custom_ports -v childdomain1.lan:3269,childdomain2.lan:3269,childdomain3.lan:389</code></p></td></tr><tr><td>distinguishedNameAttribute</td><td>不適用</td><td>wgserver.domain.ldap.dnAttribute</td><td>LDAP</td><td><p>用於存放使用者的可分辨名稱的屬性。此屬性是可選屬性，但它大大提高了 LDAP 查詢的性能。</p><p class="note"><b>重要提示</b>︰不要將此選項設定為初始設定的一部分。僅在驗證整個 LDAP 功能後進行設定。在設定此金鑰之前，您的組織中必須已設定 dnAttribute。</p></td></tr><tr><td>groupBaseDn</td><td>不適用</td><td>wgserver.domain.ldap.group.baseDn</td><td>LDAP</td><td><p>使用此選項指定群組的替代根。例如，如果所有群組都儲存在名為「groups」的基礎組織中，則請輸入 <code>"o=groups"</code>。</p></td></tr><tr><td>不適用</td><td>classnames</td><td>wgserver.domain.ldap.group.classnames</td><td>LDAP</td><td><p>預設情況下，Tableau Server 會尋找「group」、「groupOfNames」或「groupOfURLs」。如果您的 LDAP 組物件不適合預設類別名稱，請透過設定此值來覆寫預設值。您可以提供由逗號分隔的多個類別名稱。</p><p>如果您的群組名稱包含逗號，則必須使用反斜線 (\) 將其逸出。例如，如果您的群組名稱為 <code>groupOfNames, top</code>，則請輸入 <code>"groupOfNames\, top"</code>。</p><p>Tableau LDAP 實作會將 LDAP 物件解譯為使用者或群組。因此，請確保您輸入了最具體的類別名稱。使用者和群組之間的類別名稱重疊可能會導致衝突。</p><p>原生 tsm 命令：使用 <a href="https://help.tableau.com/v0.0/server/zh-tw/cli_user-identity_tsm.htm#TSMSetGroupMap" class="xref">tsm user-identity-store set-group-mappings [options]</a> 命令。</p></td></tr><tr><td>groupBaseFilter</td><td>basefilter</td><td>wgserver.domain.ldap.group.baseFilter</td><td>LDAP</td><td><p>要用於 Tableau Server 使用者群組的篩選條件。您可以指定物件類屬性和組織單元屬性。例如：</p><p><code>"(&amp;(objectClass=groupofNames)(ou=Group))"</code></p><p>如果 <code>"(&amp;(objectClass=inetOrgPerson)(ou=People))"</code> 在 LDAP 實作中無法使用，請指定適用於 Tableau 使用者的基本篩選器。</p><p>這是必要金鑰。它不能為空。</p><p>原生 tsm 命令：使用 <a href="https://help.tableau.com/v0.0/server/zh-tw/cli_user-identity_tsm.htm#TSMSetGroupMap" class="xref">tsm user-identity-store set-group-mappings [options]</a> 命令。</p></td></tr><tr><td>groupName</td><td>groupname</td><td>wgserver.domain.ldap.group.name</td><td>LDAP</td><td><p>與 LDAP 伺服器上的群組名稱對應的屬性。</p><p>原生 tsm 命令：使用 <a href="https://help.tableau.com/v0.0/server/zh-tw/cli_user-identity_tsm.htm#TSMSetGroupMap" class="xref">tsm user-identity-store set-group-mappings [options]</a> 命令。</p></td></tr><tr><td>groupEmail</td><td>groupemail</td><td>wgserver.domain.ldap.group.email</td><td>LDAP</td><td><p>與 LDAP 伺服器上的群組電子郵件地址對應的屬性。</p><p>原生 tsm 命令：使用 <a href="https://help.tableau.com/v0.0/server/zh-tw/cli_user-identity_tsm.htm#TSMSetGroupMap" class="xref">tsm user-identity-store set-group-mappings [options]</a> 命令。</p></td></tr><tr><td>groupDescription</td><td>description</td><td>wgserver.domain.ldap.group.description</td><td>LDAP</td><td><p>與 LDAP 伺服器上的群組說明對應的屬性。</p><p>原生 tsm 命令：使用 <a href="https://help.tableau.com/v0.0/server/zh-tw/cli_user-identity_tsm.htm#TSMSetGroupMap" class="xref">tsm user-identity-store set-group-mappings [options]</a> 命令。</p></td></tr><tr><td>member</td><td>member</td><td>wgserver.domain.ldap.group.member</td><td>LDAP</td><td><p>指定包含屬於該群組一部分之辨別名稱清單的 LDAP 屬性。</p><p>原生 tsm 命令：使用 <a href="https://help.tableau.com/v0.0/server/zh-tw/cli_user-identity_tsm.htm#TSMSetGroupMap" class="xref">tsm user-identity-store set-group-mappings [options]</a> 命令。</p></td></tr><tr><td>不適用</td><td>不適用</td><td>wgserver.domain.ldap.group.memberURL</td><td>LDAP</td><td>指定儲存動態群組 LDAP 查詢的 LDAP 屬性名稱。</td></tr><tr><td>userBaseDn</td><td>不適用</td><td>wgserver.domain.ldap.user.baseDn</td><td>LDAP</td><td>使用此選項指定使用者的替代根。例如，如果所有使用者都儲存在名為「users」的基礎組織中，則請輸入 <code>"o=users"</code>。</td></tr><tr><td>不適用</td><td>classnames</td><td>wgserver.domain.ldap.user.classnames</td><td>LDAP</td><td><p>預設情況下，Tableau Server 會尋找包含字串 “user” 和 “inetOrgPerson” 的 LDAP 使用者物件類。如果您的 LDAP 使用者物件不使用這些預設類別名稱，請透過設定此值來覆寫預設值。您可以提供由逗號分隔的多個類別名稱。例如：<code>"userclass1, userclass2"</code>。</p><p>如果您的名稱包含逗號，則必須使用反斜線 (\) 將其逸出。例如，如果您的名稱為 <code>Names, top</code>，則請輸入 <code>"Names\, top"</code>。</p><p>原生 tsm 命令：使用 <a href="https://help.tableau.com/v0.0/server/zh-tw/cli_user-identity_tsm.htm#TSMSetUserMap" class="xref">tsm user-identity-store set-user-mappings [options]</a> 命令。</p></td></tr><tr><td>userBaseFilter</td><td>basefilter</td><td>wgserver.domain.ldap.user.baseFilter</td><td>LDAP</td><td><p>要用於 Tableau Server 使用者的篩選條件。您可以指定物件類屬性和組織單元屬性。</p><p>例如：</p><p><code>"(&amp;(objectClass=inetOrgPerson)(ou=People))"</code></p><p>原生 tsm 命令：使用 <a href="https://help.tableau.com/v0.0/server/zh-tw/cli_user-identity_tsm.htm#TSMSetUserMap" class="xref">tsm user-identity-store set-user-mappings [options]</a> 命令。</p></td></tr><tr><td>userUsername</td><td>ldapusername</td><td>wgserver.domain.ldap.user.username</td><td>LDAP</td><td><p>與 LDAP 伺服器上的使用者名對應的屬性。</p><p>原生 tsm 命令：使用 <a href="https://help.tableau.com/v0.0/server/zh-tw/cli_user-identity_tsm.htm#TSMSetUserMap" class="xref">tsm user-identity-store set-user-mappings [options]</a> 命令。</p></td></tr><tr><td>userDisplayName</td><td>displayname</td><td>wgserver.domain.ldap.user.displayname</td><td>LDAP</td><td><p>與 LDAP 伺服器上的使用者顯示名稱對應的屬性。</p><p>原生 tsm 命令：使用 <a href="https://help.tableau.com/v0.0/server/zh-tw/cli_user-identity_tsm.htm#TSMSetUserMap" class="xref">tsm user-identity-store set-user-mappings [options]</a> 命令。</p></td></tr><tr><td>userEmail</td><td>email</td><td>wgserver.domain.ldap.user.email</td><td>LDAP</td><td><p>與 LDAP 伺服器上的使用者電子郵件地址對應的屬性。</p><p>原生 tsm 命令：使用 <a href="https://help.tableau.com/v0.0/server/zh-tw/cli_user-identity_tsm.htm#TSMSetUserMap" class="xref">tsm user-identity-store set-user-mappings [options]</a> 命令。</p></td></tr><tr><td>userCertificate</td><td>certificate</td><td>wgserver.domain.ldap.user.usercertificate</td><td>LDAP</td><td><p>與 LDAP 伺服器上的使用者憑證對應的屬性。</p><p>原生 tsm 命令：使用 <a href="https://help.tableau.com/v0.0/server/zh-tw/cli_user-identity_tsm.htm#TSMSetUserMap" class="xref">tsm user-identity-store set-user-mappings [options]</a> 命令。</p></td></tr><tr><td>不適用</td><td>thumbnail</td><td>wgserver.domain.ldap.user.thumbnail</td><td>LDAP</td><td><p>與 LDAP 伺服器上的使用者縮圖影像對應的屬性。</p><p>原生 tsm 命令：使用 <a href="https://help.tableau.com/v0.0/server/zh-tw/cli_user-identity_tsm.htm#TSMSetUserMap" class="xref">tsm user-identity-store set-user-mappings [options]</a> 命令。</p></td></tr><tr><td>userJpegPhoto</td><td>jpegphoto</td><td>wgserver.domain.ldap.user.jpegphoto</td><td>LDAP</td><td><p>與 LDAP 伺服器上的使用者設定檔影像對應的屬性。</p><p>原生 tsm 命令：使用 <a href="https://help.tableau.com/v0.0/server/zh-tw/cli_user-identity_tsm.htm#TSMSetUserMap" class="xref">tsm user-identity-store set-user-mappings [options]</a> 命令。</p></td></tr><tr><td>memberOf</td><td>memberof</td><td>wgserver.domain.ldap.user.memberof</td><td>LDAP</td><td><p>使用者所屬的組。</p><p>原生 tsm 命令：使用 <a href="https://help.tableau.com/v0.0/server/zh-tw/cli_user-identity_tsm.htm#TSMSetUserMap" class="xref">tsm user-identity-store set-user-mappings [options]</a> 命令。</p></td></tr><tr><td>groupClassNames</td><td>不適用</td><td>wgserver.domain.ldap.group.classnames</td><td>LDAP</td><td><p>預設情況下，Tableau Server 會尋找「group」、「groupOfNames」或「groupOfURLs」。如果您的 LDAP 組物件不適合預設類別名稱，請透過設定此值來覆寫預設值。</p><p>對於 configEntity：此選項採用字串清單，這需要以引號傳遞每個類別，並用逗號（無空格）在括號中分隔。例如：<code>["basegroup","othergroup"]</code>。</p><p>對於 configKey：輸入每個類別，用逗號（無空格）在雙引號中分隔。例如：<code>"basegroup,othergroup”</code>。</p></td></tr><tr><td>userClassNames</td><td>不適用</td><td>wgserver.domain.ldap.user.classnames</td><td>LDAP</td><td><p>預設情況下，Tableau Server 會尋找包含字串 “user” 和 “inetOrgPerson” 的 LDAP 使用者物件類。如果您的 LDAP 使用者物件不使用這些預設類別名稱，請透過設定此值來覆寫預設值。</p><p>對於 configEntity：此選項採用字串清單，這需要以引號傳遞每個類別，並用逗號（無空格）在括號中分隔。例如：<code>["userclass1",userclass2”]</code>。</p><p>對於 configKey：輸入每個類別，用逗號（無空格）在雙引號中分隔。例如：<code>"userclass1,userclass2”</code>。</p></td></tr></tbody></table>

### 計算 configKeys

下列 Kerberos 相關的 configKeys 已計算，並根據多個環境輸入設定。因此，必須由原生 tsm 命令或 configEntities 設定。請勿嘗試手動設定這些 configKeys。

<table style="width: 100%;" class="simple-table"><colgroup><col style="width: 34%;"><col style="width: 33%;"><col style="width: 33%;"></colgroup><tbody><tr><th>計算 configKey</th><th>使用原生 TSM 命令︰</th><th>使用 configEntity json：</th></tr><tr><td><p>wgserver.domain.ldap.kerberos.conf,</p><p>cfs.ldap.kerberos.conf</p></td><td><p>透過 <a href="https://help.tableau.com/v0.0/server/zh-tw/cli_user-identity_tsm.htm#TSMSetConnection" class="xref">tsm user-identity-store set-connection [options]</a> 命令的 <code>kerbconfig</code> 選項設定 Kerberos 組態檔位置。</p></td><td style="color: #000000;">透過 <code>kerberosConfig</code> configEntity 選項設定 Kerberos 組態檔位置。</td></tr><tr><td><p>wgserver.domain.ldap.kerberos.keytab,</p><p>cfs.ldap.kerberos.keytab</p></td><td>透過 <a href="https://help.tableau.com/v0.0/server/zh-tw/cli_user-identity_tsm.htm#TSMSetConnection" class="xref">tsm user-identity-store set-connection [options]</a> 命令的 <code>kerbkeytab</code> 選項設定 Kerberos Keytab 檔案位置。</td><td style="color: #000000;">透過 <code>kerberosKeytab</code> configEntity 選項設定 Kerberos Keytab 檔位置。</td></tr></tbody></table>

### 不支援的 configKeys

基礎 .yml 組態檔中有一些不支援的 configKeys。下列金鑰不適用於標準部署。請勿設定下列金鑰：

- wgserver.domain.ldap.kerberos.login
- wgserver.domain.ldap.guid
- wgserver.domain.fqdn︰此金鑰與 wgserver.domain.default 重複。兩個金鑰的值必須相同。僅當該值與 wgserver.domain.default 不相符時，才更新 wgserver.domain.fqdn。