Password Length & Complexity Requirements - Elastix Web

Status
Not open for further replies.

danardf

Joined
Dec 3, 2007
Messages
8,069
Reaction score
12
Hi all.
I repost this topic written on the old forum. Because it was not synchronised here.

Target
Improve the security for Elastix user GUI.​

Usually, the passwords are so simple. You could enter anything with a short password, all is right. It needs to be safer.
Now, we will try to change the module which add any Elastix users for login into Web GUI.​

The changes
You need to edit the file : /var/www/html/modules/userlist/index.php

At the line about 420 & 427 you have two fields: password1 & passord2
bellow, you've got a line which inform that you use a text format for validations like this:
Code:
"VALIDATION_TYPE"        => "text",
You need to change this value by:
Code:
"VALIDATION_TYPE"        => "ereg",
Next, you need to setting up the regex rule within this line:
Code:
"VALIDATION_EXTRA_PARAM" => " put your rule here "),
Replace put your rule here by your custom regex.
With the regex you should be able to apply some rules like for example, put a limit of the lengt for your password. check the content and enabling some characters, special characters...etc.
Do it for both fields of course. ;)

Tools:
 
Last edited:
  • Like
Reactions: remark
Status
Not open for further replies.

Members Online Now

Forum statistics

Threads
111,832
Messages
589,278
Members
164,662
Latest member
DejanMDS