Usernames may only contain....
Usernames may only contain....
Usernames may only contain alphanumeric characters, an underscore (_) or a hyphen (-) in Fusion 4.1.3, is there a way to allow "." in usernames?
Nagios XI 5.9.1 (8 Servers)
Nagios Fusion 2024R1.0.2
Nagios Fusion 2024R1.0.2
Re: Usernames may only contain....
Hey TBT,
If you would like to allow periods in usernames, you can modify the following file:
Go to line 276 and you should see the following code:
To allow periods in usernames, change the above code to:
All of that being said, I have to give the disclaimer that these changes will be reverted on upgrade if that feature is not added on our end in the next release, so you will have to go back in and modify the file again.
I also cannot guarantee that nothing will be affected by that change. I don't foresee anything being broken by that change, but I also haven't tested it extensively.
If you would like to allow periods in usernames, you can modify the following file:
Code: Select all
/usr/local/nagiosfusion/html.admin.users.php
Code: Select all
if (!empty($username) && !preg_match('/^[A-Za-z0-9\_\-]*$/', $username))
$errmsg .= _('Usernames may only contain alphanumeric characters, an underscore (_) or a hyphen (-).');
Code: Select all
if (!empty($username) && !preg_match('/^[A-Za-z0-9\_\-\.]*$/', $username))
$errmsg .= _('Usernames may only contain alphanumeric characters, an underscore (_), a period (.) or a hyphen (-).');
I also cannot guarantee that nothing will be affected by that change. I don't foresee anything being broken by that change, but I also haven't tested it extensively.
Re: Usernames may only contain....
Understood. Thank you.
Nagios XI 5.9.1 (8 Servers)
Nagios Fusion 2024R1.0.2
Nagios Fusion 2024R1.0.2
Re: Usernames may only contain....
@TBT, is it safe to lock this topic? Thanks!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Usernames may only contain....
Yes, thanks.lmiltchev wrote:@TBT, is it safe to lock this topic? Thanks!
Nagios XI 5.9.1 (8 Servers)
Nagios Fusion 2024R1.0.2
Nagios Fusion 2024R1.0.2