In this example, the minimum password length is set to 12 characters and the maximum length is set to 22 characters.
[edit system login] passwords { minimum-length 12; maximum-length 22; }