CREATE PROFILE
Creates a profile that controls password requirements for users.
Syntax
CREATE PROFILE profile‑name LIMIT [ password-parameter setting ]…
PASSWORD_LIFE_TIME PASSWORD_GRACE_TIME FAILED_LOGIN_ATTEMPTS PASSWORD_LOCK_TIME PASSWORD_REUSE_MAX PASSWORD_REUSE_TIME PASSWORD_MAX_LENGTH PASSWORD_MIN_LENGTH PASSWORD_MIN_LETTERS PASSWORD_MIN_UPPERCASE_LETTERS PASSWORD_MIN_LOWERCASE_LETTERS PASSWORD_MIN_DIGITS PASSWORD_MIN_SYMBOLS
Parameters
All parameters that are not explicitly set in a new profile are set to default
, and inherit their settings from the default profile.
Name | Description |
---|---|
profile‑name |
The name of the profile to create, where name conforms to conventions described in Identifiers. |
PASSWORD_LIFE_TIME
|
Set to an integer value, one of the following:
After your password's lifetime and grace period expire, you must change your password on your next login, if you have not done so already. |
PASSWORD_GRACE_TIME
|
Set to an integer value, one of the following:
|
FAILED_LOGIN_ATTEMPTS
|
Set to an integer value, one of the following:
|
PASSWORD_LOCK_TIME
|
Set to an integer value, one of the following:
|
PASSWORD_REUSE_MAX
|
Set to an integer value, one of the following:
|
PASSWORD_REUSE_TIME
|
Set to an integer value, one of the following:
|
PASSWORD_MAX_LENGTH
|
The maximum number of characters allowed in a password, one of the following:
|
PASSWORD_MIN_LENGTH
|
The minimum number of characters required in a password, one of the following:
|
PASSWORD_MIN_LETTERS
|
Minimum number of letters (a‑z and A‑Z) that must be in a password, one of the following:
|
PASSWORD_MIN_UPPERCASE_LETTERS
|
Minimum number of uppercase letters (A‑Z) that must be in a password, one of the following:
|
PASSWORD_MIN_LOWERCASE_LETTERS
|
Minimum number of lowercase letters (a-z) that must be in a password, one of the following:
|
PASSWORD_MIN_DIGITS
|
Minimum number of digits (0-9) that must be in a password, one of the following:
|
PASSWORD_MIN_SYMBOLS
|
Minimum number of symbols—printable non-letter and non-digit characters such as $, #, @—that must be in a password, one of the following:
|
Privileges
Superuser
Profile Settings and Client Authentication
The following profile settings affect client authentication methods, such as LDAP or GSS:
FAILED_LOGIN_ATTEMPTS
PASSWORD_LOCK_TIME
All other profile settings are used only by Vertica to manage its passwords.
Example
=> CREATE PROFILE sample_profile LIMIT PASSWORD_MAX_LENGTH 20;