password-policy

password-policy get

Usage

usage: -c password-policy get [-h]
                           [-f {adaptive_table,json,shell,table,value,yaml}]
                           [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                           [--max-width <integer>] [--noindent]
                           [--prefix PREFIX]

Description

Get current password policy configuration.

Return

Returns dict: A structure containing current policy configuration dict

Optional

 optional arguments:
-h, --help            show this help message and exit

password-policy reset

Usage

usage: -c password-policy reset [-h]
                             [-f {adaptive_table,json,shell,table,value,yaml}]
                             [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                             [--max-width <integer>] [--noindent]
                             [--prefix PREFIX]

Description

Removes current password policy configuration and reset to default configuration. default configuration includes: min_length: 8. letter: true. digit: true. special_character: true. passwords_remembered: 6. password_expiry_days: 90.

Return

None

Optional

 optional arguments:
-h, --help            show this help message and exit

password-policy update

Usage

usage: -c password-policy update [-h]
                              [-f {adaptive_table,json,shell,table,value,yaml}]
                              [-c COLUMN]
                              [-m [NAME=VALUE [NAME=VALUE ...]]]
                              [--max-width <integer>] [--noindent]
                              [--prefix PREFIX]
                              [--min-password-length MIN_PASSWORD_LENGTH]
                              [--letter LETTER] [--digit DIGIT]
                              [--special-characters SPECIAL_CHARACTERS]
                              [--passwords-remembered PASSWORDS_REMEMBERED]
                              [--password-expiry-days PASSWORD_EXPIRY_DAYS]

Description

Updates current password policy configuration.

Return

Returns dict: A structure containing current policy configuration dict

Optional

 optional arguments:
-h, --help            show this help message and exit
--min-password-length MIN_PASSWORD_LENGTH
                      Minimum number of characters allowed in a user password. can be any number from 6 to 128
--letter LETTER       When set to True, Require user passwords to contain at least one
                      character from the ISO basic Latin alphabet (A to Z or a to z)
--digit DIGIT         When set to True, Require user passwords to contain at least one numeric character (0 to 9)
--special-characters SPECIAL_CHARACTERS
                      When set to True, Require user passwords to contain at least one of the following
                      non-alphanumeric characters: ! @ # $ % ^ & * ( ) _ + - = [ ] { } | '
--passwords-remembered PASSWORDS_REMEMBERED
                      When set to a number different than 0, will prevent users from reusing a
                      specified number of previous passwords. can be any number from 0 to 24
--password-expiry-days PASSWORD_EXPIRY_DAYS
                      The number of days that a user's password is valid. if value given is 0,
                      The result is that user passwords never expire