Previous Topic: Limit Repetition of Characters

Next Topic: Prevent the User Name from Appearing in the Password

Limit Repetition of Substrings

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

To prevent repetition of a substring within a password

  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-substring | 0;
    
  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