HomeMogDBMogDB StackUqbar
v3.0

Documentation:v3.0

Supported Versions:

Other Versions:

CREATE WEAK PASSWORD DICTIONARY

Function

CREATE WEAK PASSWORD DICTIONARY inserts one or more weak passwords into the gs_global_config table.

Precautions

  • Only the initial user, system administrator, and security administrator have the permission to execute this syntax.
  • Passwords in the weak password dictionary are stored in the gs_global_config system catalog.
  • The weak password dictionary is empty by default. You can use this syntax to add one or more weak passwords.
  • When a user attempts to execute this syntax to insert a weak password that already exists in the gs_global_config table, only one weak password is retained in the table.

Syntax

CreateWeakPasswordDictionary ::= CREATE WEAK PASSWORD DICTIONARY
       [WITH VALUES] ( {'weak_password'} [, ...] );

Parameter Description

weak_password

Specifies a weak password.

Value range: a character string

Examples

-- Insert a single weak password into the gs_global_config system catalog.
MogDB=# CREATE WEAK PASSWORD DICTIONARY WITH VALUES ('password1');

-- Insert multiple weak passwords into the gs_global_config system catalog.
MogDB=# CREATE WEAK PASSWORD DICTIONARY WITH VALUES ('password2'),('password3');

-- Clear all weak passwords in the gs_global_config system catalog.
MogDB=# DROP WEAK PASSWORD DICTIONARY;

-- View existing weak passwords.
MogDB=# SELECT * FROM gs_global_config WHERE NAME LIKE 'weak_password';

DROP WEAK PASSWORD DICTIONARY

Copyright © 2011-2024 www.enmotech.com All rights reserved.