Option to specify length of the gernated random passwords (SKINS)

Version 1.38


Admin Settings option to set how long random passwords will be. Applies to all random password areas. (DA account creation, email, mysql, ftp, lost password reset, resend welcome message) directadmin.conf option: random_password_length=8 where 8 is the internal default. As of DA 1.45.3, the actual length is a random length, between random_password_length and random_password_length_max http://www.directadmin.com/features.php?id=1604 If you want a different length, then add the option to the directadmin.conf with the number you want. Values should be somewhere between 4 and 20. You can go as high as you want, but you might run into field size limits in some skins (not our skins though). Your clients may also hate you if you expect them to memorize a 30 random character password. Also, if you are using the difficult password enforcement option, using a lower number for the password length may cause the random password generator to fail, as it will only try 20 times to meet all criteria (Upper & lower case, number, etc). With only 4 characters, the likelihood of 20 tries not being enough is high. The difficult_password.php script will also check this value, and lower the $min_length automatically if the random_password_length is less than 6. SKINS: javascript.html var length = 8; changed to: var length = |RANDOM_PASSWORD_LENGTH|; This token is available as a global token.

Interested to try DirectAdmin? Get a 30-day Free Trial!