From 71e38429d6f108b596c6d0b2fa1e71b193e3a829 Mon Sep 17 00:00:00 2001 From: dmchen Date: Tue, 18 Feb 2025 04:01:38 +0000 Subject: [PATCH] feat/TS-5927-long-password-docs --- docs/en/08-operation/14-user.md | 5 ++++- docs/en/14-reference/03-taos-sql/19-limit.md | 2 +- docs/zh/08-operation/14-user.md | 5 ++++- docs/zh/14-reference/03-taos-sql/19-limit.md | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/docs/en/08-operation/14-user.md b/docs/en/08-operation/14-user.md index 5aa8b2e211..8e5fd6b59e 100644 --- a/docs/en/08-operation/14-user.md +++ b/docs/en/08-operation/14-user.md @@ -18,7 +18,10 @@ create user user_name pass'password' [sysinfo {1|0}] [createdb {1|0}] The parameters are explained as follows. - user_name: Up to 23 B long. -- password: The password must be between 8 and 16 characters long and include at least three types of characters from the following: uppercase letters, lowercase letters, numbers, and special characters. Special characters include `! @ # $ % ^ & * ( ) - _ + = [ ] { } : ; > < ? | ~ , .`. +- password: The password must be between 8 and 255 characters long. The password include at least three types of characters from the following: uppercase letters, lowercase letters, numbers, and special characters, special characters include `! @ # $ % ^ & * ( ) - _ + = [ ] { } : ; > < ? | ~ , .`, and this reqirement is able to be closed by adding enableStrongPassword 0 in taos.cfg, or by the following SQL: +```sql +alter all dnode 'EnableStrongPassword' '0' +``` - sysinfo: Whether the user can view system information. 1 means they can view it, 0 means they cannot. System information includes server configuration information, various node information such as dnode, query node (qnode), etc., as well as storage-related information, etc. The default is to view system information. - createdb: Whether the user can create databases. 1 means they can create databases, 0 means they cannot. The default value is 0. // Supported starting from TDengine Enterprise version 3.3.2.0 diff --git a/docs/en/14-reference/03-taos-sql/19-limit.md b/docs/en/14-reference/03-taos-sql/19-limit.md index ceed6e828a..23a1448a55 100644 --- a/docs/en/14-reference/03-taos-sql/19-limit.md +++ b/docs/en/14-reference/03-taos-sql/19-limit.md @@ -37,6 +37,6 @@ Removed `` ‘“`\ `` (single and double quotes, apostrophe, backslash, space) - Number of databases, supertables, and tables are not limited by the system, only by system resources - Number of replicas for a database can only be set to 1 or 3 - Maximum length of username is 23 bytes -- Maximum length of user password is 31 bytes +- Maximum length of user password is 255 bytes - Total number of data rows depends on available resources - Maximum number of virtual nodes for a single database is 1024 diff --git a/docs/zh/08-operation/14-user.md b/docs/zh/08-operation/14-user.md index 3a080619aa..bcea85bd71 100644 --- a/docs/zh/08-operation/14-user.md +++ b/docs/zh/08-operation/14-user.md @@ -17,7 +17,10 @@ create user user_name pass'password' [sysinfo {1|0}] [createdb {1|0}] 相关参数说明如下。 - user_name:用户名最长不超过 23 个字节。 -- password:密码长度必须为 8 到 16 位,并且至少包含大写字母、小写字母、数字、特殊字符中的三类。特殊字符包括 `! @ # $ % ^ & * ( ) - _ + = [ ] { } : ; > < ? | ~ , .`。(始自 3.3.5.0 版本) +- password:密码长度必须为 8 到 255 。密码要符合一个要求:至少包含大写字母、小写字母、数字、特殊字符中的三类。特殊字符包括 `! @ # $ % ^ & * ( ) - _ + = [ ] { } : ; > < ? | ~ , .`(始自 3.3.5.0 版本),可以通过在taos.cfg中添加参数enableStrongPassword 0关闭这个强制要求,或者通过如下SQL关闭这个强制要求(始自 3.3.6.0 版本)。 +```sql +alter all dnode 'EnableStrongPassword' '0' +``` - sysinfo :用户是否可以查看系统信息。1 表示可以查看,0 表示不可以查看。系统信息包括服务端配置信息、服务端各种节点信息,如 dnode、查询节点(qnode)等,以及与存储相关的信息等。默认为可以查看系统信息。 - createdb:用户是否可以创建数据库。1 表示可以创建,0 表示不可以创建。缺省值为 0。// 从 TDengine 企业版 3.3.2.0 开始支持 diff --git a/docs/zh/14-reference/03-taos-sql/19-limit.md b/docs/zh/14-reference/03-taos-sql/19-limit.md index e5c03db2fd..27143ddb53 100644 --- a/docs/zh/14-reference/03-taos-sql/19-limit.md +++ b/docs/zh/14-reference/03-taos-sql/19-limit.md @@ -37,6 +37,6 @@ description: 合法字符集和命名中的限制规则 - 库的数目,超级表的数目、表的数目,系统不做限制,仅受系统资源限制 - 数据库的副本数只能设置为 1 或 3 - 用户名的最大长度是 23 字节 -- 用户密码的长度范围是 8-16 字节 +- 用户密码的长度范围是 8-255 字节 - 总数据行数取决于可用资源 - 单个数据库的虚拟结点数上限为 1024