From c9239a3457f8969f218cd47393a3665806d8e652 Mon Sep 17 00:00:00 2001 From: cooper-lzy <78672629+cooper-lzy@users.noreply.github.com> Date: Thu, 12 Oct 2023 10:28:20 +0800 Subject: [PATCH] Update 2.management-user.md --- .../1.authentication/2.management-user.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs-2.0/7.data-security/1.authentication/2.management-user.md b/docs-2.0/7.data-security/1.authentication/2.management-user.md index f1038c487df..1f441e32d82 100644 --- a/docs-2.0/7.data-security/1.authentication/2.management-user.md +++ b/docs-2.0/7.data-security/1.authentication/2.management-user.md @@ -176,8 +176,12 @@ - 语法 ```ngql - ALTER USER [WITH PASSWORD ''] [WITH IP WHITELIST ]; + ALTER USER [WITH PASSWORD ''] [WITH IP WHITELIST { | % }]; ``` + + - `ip_list`:IP 白名单列表。该用户只有通过列表内的 IP 才能连接{{nebula.name}}。多个 IP 之间用英文逗号(,)分隔。 + - `%`:表示取消白名单。用户使用任何 IP 都可以连接{{nebula.name}}。 + {{ ent.ent_end }} {{ comm.comm_begin }} @@ -200,10 +204,6 @@ - 示例 - !!! enterpriseonly - - 使用`WITH IP WHITELIST`时,后面不填写任何 IP 表示取消白名单,用户使用任何 IP 都可以连接{{nebula.name}}。 - ```ngql nebula> ALTER USER user2 WITH PASSWORD 'change_password'; nebula> ALTER USER user2 WITH PASSWORD 'nebula' WITH IP WHITELIST 192.168.10.10; @@ -214,7 +214,7 @@ | "root" | "" | | "user2" | "192.168.10.10" | +---------+-----------------+ - nebula> ALTER USER user2 WITH IP WHITELIST; + nebula> ALTER USER user2 WITH IP WHITELIST %; nebula> SHOW USERS; +---------+--------------+ | Account | IP Whitelist |