Menu

Password validation

2013-08-26
2013-08-27
  • Adam Wojnicz

    Adam Wojnicz - 2013-08-26

    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.

     
  • Christian Boltz

    Christian Boltz - 2013-08-26

    $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']

     
  • Adam Wojnicz

    Adam Wojnicz - 2013-08-27

    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 "!"

     
  • Christian Boltz

    Christian Boltz - 2013-08-27

    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 ;-)

     

Log in to post a comment.

MongoDB Logo MongoDB