Thanks Falko - we are all fixed :-)
Please find below our MINI-HOWTO to help others that may search this forum looking for the solution.....
-----------------------------------------------------
HOWTO - Enabling numeric prefix on usernames in ISPConfig (as at Version 2.2.5)
-----------------------------------------------------
Target settings:
domain name = 13thbloke.com.au
User prefix = [DOMAIN]_
desired user email =
info@13thbloke.com.au
This should result in a username = 13thbloke.com.au_info
Issue:
When trying to add the user will get the following ISPConfig error.....
Field: Username
The user name has to contain a minimum of 4 and a maximum of 32 letters
or figures and has to begin with a letter.
Workaround:
# cp /home/admispconfig/ispconfig/lib/plugins/isp_username.plugin.php /home/admispconfig/ispconfig/lib/plugins/isp_username.plugin.php-ORIGINAL
# vi /home/admispconfig/ispconfig/lib/plugins/isp_username.plugin.php
Find the following line:
if(!preg_match("/^[a-z][\w\.\-\_]{3,64}$/",$user_prefix . $username)) {
$go_api->db->query("DELETE from isp_isp_user where doc_id = '$doc_id'");
And change it to:
if(!preg_match("/^[a-zA-Z0-9][\w\.\-\_]{3,64}$/",$user_prefix . $username)) {
$go_api->db->query("DELETE from isp_isp_user where doc_id = '$doc_id'");
Done :-)
PS: You will probably need to make this change each time ISPConfig is upgraded, until
the functionality is included into the base package (assumes UNIX system of choice will
allow numeric prefix as Fedora does).
Recent comments
19 hours 17 min ago
19 hours 23 min ago
1 day 21 min ago
1 day 7 hours ago
1 day 7 hours ago
1 day 9 hours ago
1 day 13 hours ago
1 day 20 hours ago
1 day 23 hours ago
2 days 1 hour ago