1

Topic: Number of characters for - Need a random password?

==== Required information ====
- iRedMail version: iRedAdmin-Pro    v1.8.2
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): (MySQL)
- Linux/BSD distribution name and version: 12.04.1 LTS, Precise Pangolin
- Related log if you're reporting an issue: N/A
====

Hi,

This question relates to the "Need a random password?" section.
Am I able to set the rules for the generation?
I know I can set the special characters etc (http://www.iredmail.org/forum/post30319.html#p30319) but I need to set the amount of characters in this generation.

When changing a users password it displays 10 Character passwords.
When creating a new user it displays a huge password that is so big it goes off the screen.

Thank you!!

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Number of characters for - Need a random password?

cre8r wrote:

Am I able to set the rules for the generation?

Yes. iRedAdmin-Pro uses 4 restrictions by default, you can enable or disable them.

# Default settings in libs/default_settings.py, please copy them to 'settings.py' then modify them.
#
# Password restrictions
#
# Special characters which can be used in password.
PASSWORD_SPECIAL_CHARACTERS = """#$%&'"*+-,.:;!<=>?@[]/\(){}^_`~"""
# Must contain at least one letter, one uppercase letter, one number, one special character
PASSWORD_HAS_LETTER = True
PASSWORD_HAS_UPPERCASE = True
PASSWORD_HAS_NUMBER = True
PASSWORD_HAS_SPECIAL_CHAR = True

There's a bug in the latest iRedAdmin-Pro, it will display more then minimal password length set in global setting (settings.py) or per-domain setting. Fixed in development edition and will be available in next release of iRedAdmin-Pro.

3

Re: Number of characters for - Need a random password?

Thanks for your reply.
All I needed to know smile