Dameng database set password policy

Dameng database set password policy

Compared with traditional Oracle database

In the oracle database, we set the password policy to modify the database profile. As
Insert picture description hereyou can see below , the default value of PASSWORD_VERIFY_FUNCTION in RESOURCE_NAME is null. Now we see that this value is CIC_VERIFY_FUNCTION. In fact, this value is a function. The password policy is set by creating a function. Modify the PASSWORD_VERIFY_FUNCTION value to generate a password policy. The command to create a password policy function is omitted.

Dameng database set password policy

Dameng database is different from Oracle database. Its password policy is implemented by setting parameter values. This parameter is PWD_POLICY. This parameter has 6 values ​​representing different password policies:
0 No policy
1 Prohibit the same as the user name
2 Password length is not less than 9
4 At least one uppercase letter (AZ)
8 At least one number (0-9)
16 At least A punctuation mark (in the state of English input method, all symbols except "and spaces) the
default parameter of the database is set to 2, as
Insert picture description hereshown in the figure, you can see that the password policy used by default after the database is created is not less than 6 characters in length For such a policy, if we create a user password setting less than 9 digits, an error will be reported.
Insert picture description here
Now if we want to change the complexity of the password policy setting, how to set it, for example, the password policy cannot be the same as the user name and the password length is not less than 9 digits, that is, the policies of 1 and 2 are enabled at the same time, so use the sum of the configuration to enable them at the same time, that is, 1+2=3. The
Insert picture description herepassword policy of the Dameng database is realized by setting the pwd_policy value. The password policy can be applied separately or combined Application. For combined applications, if you need to apply policies 2 and 4, you can set pwd_policy to 2+4=6.

Guess you like

Origin blog.csdn.net/tab_zj/article/details/110791542