| SYSTEM INFORMATION | |
|---|---|
| OS type and version | Debian 10 |
| Webmin version | 2.105 |
| Virtualmin version | 7.9.0 |
| Related packages | SUGGESTED |
Hi, Im using Virtualmin PRO and I included requirements for passwords in “/etc/webmin/useradmin/config” with the following configuration:
passwd_min=8
passwd_re=^(?=.*[A-Z])(?=.*\d)(?=.*\W).+$
passwd_redesc=Password must contain at least 1 uppercase letter, 1 symbol (such as !, @, #, etc.), and 1 digit (from 0 to 9).
The problem im facing is when I add this rule for the generator of password in the following configuration “/etc/webmin/virtual-server/config”:
passwd_chars=12|a-z,A-Z,0-9,#
the password sometimes does not contain a digit or an upper letter and I can’t rely on the function “generate password” because it will give me the error from “passwd_redesc”. I took that rule from the answer of Ilia in that topic - Virtualmin Password Generator [#68641] | Virtualmin
Is there any way that I force the rule to contain at least one from each of my requirements ?
Example for generated password wih the rule:
—#z,#0,#-0a–