From adad1d1d431808f18016bf3e88b15613fdcf233b Mon Sep 17 00:00:00 2001 From: cooper-lzy <78672629+cooper-lzy@users.noreply.github.com> Date: Tue, 4 Jan 2022 17:20:35 +0800 Subject: [PATCH 1/3] Add constraints on invalid password attempts --- .../7.data-security/1.authentication/1.authentication.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs-2.0/7.data-security/1.authentication/1.authentication.md b/docs-2.0/7.data-security/1.authentication/1.authentication.md index 0c0865b9984..81469589c73 100644 --- a/docs-2.0/7.data-security/1.authentication/1.authentication.md +++ b/docs-2.0/7.data-security/1.authentication/1.authentication.md @@ -16,7 +16,13 @@ Nebula Graph 支持两种身份验证方式:本地身份验证和 LDAP 验证 ### 启用本地身份验证 -1. 编辑配置文件`nebula-graphd.conf`(默认目录为`/usr/local/nebula/etc/`),设置`--enable_authorize=true`并保存退出。 +1. 编辑配置文件`nebula-graphd.conf`(默认目录为`/usr/local/nebula/etc/`),设置如下参数: + + - `--enable_authorize`:是否启用身份验证,可选值:`true`、`false`。 + + - `--failed_login_attempts`:单个 Graph 节点允许连续输入错误密码的次数。超过该次数时,账户会被锁定。如果有多个 Graph 节点,允许的次数为`节点数 * 次数`。 + + - `--password_lock_time_in_secs`:多次输入错误密码后,账户被锁定的时间。单位:秒。 2. 重启 Nebula Graph 服务。 From d3291485b47d1a44bef5e435361dfe27a12e6000 Mon Sep 17 00:00:00 2001 From: cooper-lzy <78672629+cooper-lzy@users.noreply.github.com> Date: Wed, 5 Jan 2022 14:09:27 +0800 Subject: [PATCH 2/3] update --- docs-2.0/7.data-security/1.authentication/1.authentication.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs-2.0/7.data-security/1.authentication/1.authentication.md b/docs-2.0/7.data-security/1.authentication/1.authentication.md index 81469589c73..a9f9ffa1ae7 100644 --- a/docs-2.0/7.data-security/1.authentication/1.authentication.md +++ b/docs-2.0/7.data-security/1.authentication/1.authentication.md @@ -20,9 +20,9 @@ Nebula Graph 支持两种身份验证方式:本地身份验证和 LDAP 验证 - `--enable_authorize`:是否启用身份验证,可选值:`true`、`false`。 - - `--failed_login_attempts`:单个 Graph 节点允许连续输入错误密码的次数。超过该次数时,账户会被锁定。如果有多个 Graph 节点,允许的次数为`节点数 * 次数`。 + - `--failed_login_attempts`:可选项,需要手动增加该参数。单个 Graph 节点允许连续输入错误密码的次数。超过该次数时,账户会被锁定。如果有多个 Graph 节点,允许的次数为`节点数 * 次数`。 - - `--password_lock_time_in_secs`:多次输入错误密码后,账户被锁定的时间。单位:秒。 + - `--password_lock_time_in_secs`:可选项,需要手动增加该参数。多次输入错误密码后,账户被锁定的时间。单位:秒。 2. 重启 Nebula Graph 服务。 From 57ec548181bca5ed2d29bbe93659632c08daec7c Mon Sep 17 00:00:00 2001 From: cooper-lzy <78672629+cooper-lzy@users.noreply.github.com> Date: Wed, 5 Jan 2022 14:10:42 +0800 Subject: [PATCH 3/3] update --- docs-2.0/7.data-security/1.authentication/1.authentication.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs-2.0/7.data-security/1.authentication/1.authentication.md b/docs-2.0/7.data-security/1.authentication/1.authentication.md index a9f9ffa1ae7..1a7f9eccbba 100644 --- a/docs-2.0/7.data-security/1.authentication/1.authentication.md +++ b/docs-2.0/7.data-security/1.authentication/1.authentication.md @@ -20,9 +20,9 @@ Nebula Graph 支持两种身份验证方式:本地身份验证和 LDAP 验证 - `--enable_authorize`:是否启用身份验证,可选值:`true`、`false`。 - - `--failed_login_attempts`:可选项,需要手动增加该参数。单个 Graph 节点允许连续输入错误密码的次数。超过该次数时,账户会被锁定。如果有多个 Graph 节点,允许的次数为`节点数 * 次数`。 + - `--failed_login_attempts`:可选项,需要手动添加该参数。单个 Graph 节点允许连续输入错误密码的次数。超过该次数时,账户会被锁定。如果有多个 Graph 节点,允许的次数为`节点数 * 次数`。 - - `--password_lock_time_in_secs`:可选项,需要手动增加该参数。多次输入错误密码后,账户被锁定的时间。单位:秒。 + - `--password_lock_time_in_secs`:可选项,需要手动添加该参数。多次输入错误密码后,账户被锁定的时间。单位:秒。 2. 重启 Nebula Graph 服务。