login authentication max-password-class-repeated-chars

Last Updated : Aug 28, 2026 |
Prolog information
Sets the maximum number of consecutive characters of the same class (uppercase, lowercase, digits, symbols) in a password.

Syntax

login authentication max-password-class-repeated-chars <n-chars>
no login authentication max-password-class-repeated-chars

Parameters

Parameter
Description
Possible Values
Default Value
<n-chars>
Maximum number of consecutive characters of the same class allowed in passwords.
4

User level

admin

Context

general

Example

To set the maximum number of consecutive characters of the same class (uppercase, lowercase, digits, symbols) in a password (default 4):
Gxxx-001(super)# login authentication max-password-class-repeated-chars 3
To return to default:
Gxxx-001(super)# no login authentication max-password-class-repeated-chars