启用密码复杂性规则

启用密码复杂性规则。

Redis 企业软件

Redis Enterprise Software 提供满足常见要求的可选密码复杂性规则。启用后,这些规则要求密码具有:

  • 至少 8 个字符
  • 至少一个大写字符
  • 至少一个小写字符
  • 至少一个数字
  • 至少一个特殊字符

这些要求反映了 v6.2.12 及更高版本。早期版本不支持将数字或特殊字符作为密码的第一个或最后一个字符。此限制已在 v6.2.12 中删除。

此外,密码:

  • 不能包含用户的电子邮件地址或电子邮件地址的反向地址。
  • 重复字符不能超过三个。

密码复杂性规则在创建新用户帐户和更改密码时适用。密码复杂性规则不适用于由外部身份提供商进行身份验证的账户。

您可以使用 Cluster Manager UI 或 REST API 来启用密码复杂性规则。

使用 Cluster Manager UI 启用

要使用 Cluster Manager UI 启用密码复杂性规则:

  1. 转到 Cluster > Security > Preferences,然后选择 Edit

  2. Password (密码) 部分中,打开 Complexity rules (复杂性规则)。

  3. 选择 Save (保存)。

使用 REST API 启用

要使用 REST API 启用密码复杂性规则,请执行以下作:

PUT https://[host][:port]/v1/cluster
{"password_complexity":true}

Deactivate password complexity rules

To deactivate password complexity rules:

  • Use the Cluster Manager UI:

    1. Go to Cluster > Security > Preferences, then select Edit.

    2. In the Password section, turn off Complexity rules.

    3. Select Save.

  • Use the cluster REST API endpoint to set password_complexity to false

RATE THIS PAGE
Back to top ↑