NSX CLI Guide
set password-complexity [<complexity-name> <complexity-value>]
Configure password complexity requirements.
- Minimum number of characters expected in password; user can not set their password of length lesser than this parameter. Default: 12, Minimum: 8, Maximum: 128
- Maximum number of characters allowed in password; user can not set their password of length greater than this parameter. Default: 128, Minimum: 8, Maximum: 128
- Number of lower case characters (a..z) expected in user password.
N > 0, to set maximum credit for having lower case letters in the new password, i.e. this is the maximum number of lower case characaters that are allowed for a new password.
N < 0, to set minimum credit for having lower case letters in the new password, i.e. this is the minimum number of lower case characters that must be met for a new password.
N = 0, to disable the policy check.
Default: -1, Minimum: -128, Maximum: 128- Number of upper case characters (A..Z) expected in user password.
N > 0, to set maximum credit for having upper case letters in the new password, i.e. this is the maximum number of upper case characters that are allowed for a new password.
N < 0, to set minimum credit for having upper case letters in the new password, i.e. this is the minimum number of lower case characters that must be met for a new password.
N = 0, to disable the policy check.
Default: -1, Minimum: -128, Maximum: 128- Number of digits (0..9) expected in user password.
N > 0, to set maximum credit for having digits in the new password, i.e. this is the maximum number of digits that are allowed for a new password.
N < 0, to set minimum credit for having digits in the new password, i.e. this is the minimum number of digits that must be met for a new password.
N = 0, to disable the policy check.
Default: -1, Minimum: -128, Maximum: 128- Number of special characters (!@#$&*..) expected in user password.
N > 0, to set maximum credit for having special letters in the new password, i.e. this is the maximum number of sepcial characters that are allowed for a new password.
N < 0, to set minimum credit for having special letters in the new password, i.e. this is the minimum number of sepcial characters that must be met for a new password.
N = 0, to disable the policy check.
Default: -1, Minimum: -128, Maximum: 128- Number of character changes in the new password that differentiate it from the old password. To disable the check, value should be set to 0. Default: 0, Minimum: 0, Maximum: 128
- Reject passwords which contain more than N same consecutive characters. To disable the check, value should be set to 0. Default: 0, Minimum: 0, Maximum: 128
- Reject passwords which contain more than N monotonic character sequences. Monotonic sequences can be '12345' or 'fedcb'. To disable the check, value should be set to 0. Default: 0, Minimum: 0, Maximum: 128
- Sets hash/cryptographic algorithm type for new passwords. Default: sha512. Enum: [ sha512, sha256 ]
- Limit using a password that was used in past; users can not set the same password within the N generations. To disable the check, value should be set to 0. Default: 0, Minimum: 0