---
schema_version: "1"
id: d1d339e4ad21a1e0079089a09f9f1805858697055395f6ab1efcb304d498004c
title: sapHanaSettings 实体
collection: tableau
version: current
locale: zh-cn
portal_url: https://docs.salesforce.com/tableau/current/zh-cn/server-linux/entity_sapHanaSettings.md
canonical_url: https://help.tableau.com/current/server-linux/zh-cn/entity_sapHanaSettings.htm
source_site: help.tableau.com
content_type: documentation
content_hash: b107346adef073ae36bba1cd23fead0ac44ed02be02b63bc850dd8ff4737be21
description: Reference for the sapHanaSettings entity to configure SAP HANA SAML delegation.
---
[跳转到主要内容](#main-content)

# sapHanaSettings 实体

使用 sapHanaSettings 实体来为 SAP HANA 配置 SAML 委派。

继续之前，请查看[配置 SAP HANA SSO](https://help.tableau.com/current/server-linux/zh-cn/config_sap_hana_sso.htm)。

使用下面的配置文件模板创建一个 json 文件。使用适当的值填充各个选项之后，使用以下命令传递 json 文件并应用设置：

`tsm settings import -f path-to-file.json`

`tsm pending-changes apply`

如果待定更改需要重新启动服务器，`pending-changes apply` 命令将显示一个提示，告知您将进行重新启动。即使服务器已停止，此提示也会显示，但在这种情况下不会重新启动。您可以使用 `--ignore-prompt` 选项隐藏提示，但这样做不会改变重新启动行为。如果更改不需要重新启动，则会在不提示的情况下应用更改。有关详细信息，请参见[tsm pending-changes apply](https://help.tableau.com/current/server-linux/zh-cn/cli_pending-changes.htm#pending-changes-apply)。

### SAP HANA SAML 设置

下面模板中的设置指定在包含 SAP HANA 的 SAML 委派方案中 Tableau Server 的设置。

### 配置模板

使用此模板来配置受信任的身份验证设置。

configEntities 中引用的所有文件均必须位于本地计算机上。不要指定 UNC 路径。

**重要信息：**所有实体选项均区分大小写。

有关配置文件、实体和密钥的更多说明，请参见[配置文件示例](https://help.tableau.com/current/server-linux/zh-cn/config_file_example.htm)。

{
  "configEntities": {
	"sapHanaSettings": {
	"\_type": "sapHanaSettingsType",
	"enabled": "true",
	"usernameFormat": "username",
	"usernameCase": "preserve",
	"certFile": "path-to-cert\_file",
	"keyFile": "path-to-key\_file"
	 }
	}
}		

### 配置文件参考

此表包括可随 `"gatewaySettings"` 实体集一起包括的所有选项。

enabled

必需。

值：`true` 或 `false`

usernameFormat

值：`username`、`domain_and_username` 或 `email`

指定用户名凭据格式。

usernameCase

值：`lower`、`upper` 或 `preserve`

指定用户输入名称大小写。

certFile

指定本地计算机上证书文件的文件路径和名称。

例如，`"/var/opt/tableau/tableau_server/data/saml/saml_cert.crt"`。

keyFile

指定本地计算机上证书密钥的文件路径和名称。

例如，`"/var/opt/tableau/tableau_server/data/saml/saml_key.der"`。