Configures global password attributes.
The default for min-length is 8. All other defaults are 0.
Global configuration mode
To reset password attributes to their default values, enter the no form of this command.
The following example configures global password attributes and verifies the configuration.
device#configure terminal device(config)# password-attributes max-retry 4 device(config)# password-attributes character-restriction lower 2 device(config)# password-attributes character-restriction upper 1 numeric 1 special-char 1 device(config)# exit device# show running-config password-attributes password-attributes max-retry 4 password-attributes character-restriction upper 1 password-attributes character-restriction lower 2 password-attributes character-restriction numeric 1 password-attributes character-restriction special-char 1
The following example resets the character restriction attributes and verifies the configuration.
device#configure terminal device(config)# no password-attributes character-restriction lower device(config)# no password-attributes character-restriction upper device(config)# exit device# show running-config password-attributes password-attributes max-retry 4 password-attributes character-restriction numeric 1 password-attributes character-restriction special-char 1
The following example clears all global password attributes.
device#configure terminal device(config)# no password-attributes device(config)# exit device# show running-config password-attributes % No entries found.
The following example sets the maximum number of retries to 3 and enables lockout policy for admin role accounts.
device#configure terminal device(config)# password-attributes max-retry 3 admin-lockout