I'm using postfixadmin 2.3.6-1 version and I need to run password validation, I add to my conf file:
$CONF['password_validation'] = array (
'/.{8}/' => 'password_too_short 8',
'/([a-zA-Z].){6}/' => 'password_no_characters 6',
'/([0-9].){2}/' => 'password_no_digits 2'
);
but it's not working. For example I can create passsword with only four characters.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
this option don't work too.
I set: $CONF['min_password_length'] = 10; and I can set password with 8 characters.
When 3.0 version will be available? whether it will be possible to force the use of special characters like: dot, coma or "!"
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I don't have a release date for 3.0 (depends on my rare free time), but I can tell you that it should be safe to use the code from SVN trunk ;-) And yes, you can also enforce special chars - just write a good regex ;-)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm using postfixadmin 2.3.6-1 version and I need to run password validation, I add to my conf file:
$CONF['password_validation'] = array (
'/.{8}/' => 'password_too_short 8',
'/([a-zA-Z].){6}/' => 'password_no_characters 6',
'/([0-9].){2}/' => 'password_no_digits 2'
);
but it's not working. For example I can create passsword with only four characters.
$CONF['password_validation'] is a new feature in SVN trunk (which will become PostfixAdmin 3.0).
PostfixAdmin 2.3.x only supports $CONF['min_password_length']
this option don't work too.
I set: $CONF['min_password_length'] = 10; and I can set password with 8 characters.
When 3.0 version will be available? whether it will be possible to force the use of special characters like: dot, coma or "!"
Sorry, I forgot that http://sourceforge.net/p/postfixadmin/bugs/70/ was only fixed for SVN trunk - in 2.3.x, the password length check only works when editing an admin or a mailbox.
I don't have a release date for 3.0 (depends on my rare free time), but I can tell you that it should be safe to use the code from SVN trunk ;-) And yes, you can also enforce special chars - just write a good regex ;-)