Previous Topic: Limit Repetition of CharactersNext Topic: Prevent Users from Reusing Passwords


Limit Repetition of Substrings

You may want to prevent users from choosing passwords that consist of repetitions of the same strings, such as asdasdasd.

Follow these steps:

  1. Set the minimum length of the substring that you want to check for, using the following command:
    set password-min-length-repeated-substring = length;
    

    Value for length is greater than or equal to 2;

    Note: This parameter above parameter functions only when password-max-substring-repetition is enabled.

  2. Set the number of times a substring can be repeated, using the following command:
    set password-max-substring-repetition = number-repetitions;
    

Example: Limiting Substring Repetition

You have set up the following password policy:

set password-policy = true;
set password-max-substring-repetition = 1;
set password-min-length-repeated-substring = 3;

Users in this directory cannot create the following passwords:

However, they can create the following passwords:

More information:

set password-max-suspension Command

set password-min-length-repeated-substring Command