Other characters in the User ID

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
chexhcky
Posts: 12
Joined: Wed Jul 16, 2003 9:49 am
Location: Havertown, PA

Other characters in the User ID

Post by chexhcky »

Our LAN IDs are in the format FIRSTNAME.LASTNAME. I tried to create similar IDs in Cacti and was given error information (MySQL).

It'd be nice to have other acceptable UserID characters allowed.

Thanks
-----
Its not a penalty unless the ref sees it!
anthony.warren
Posts: 31
Joined: Fri Nov 22, 2002 10:50 am
Location: Rochester, UK

Post by anthony.warren »

I would also like to be able to use other characters in the username field.
I have successfully got Cacti to LDAP authenticate to my AD LDAP and the username that appears in Cacti after first logon is firstname.surname

If I try and edit this user, and save. It rejects the save due to the . in the username.

Regards,
Anthony
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

Find the following line in user_admin.php (it is in form_save function):

Code: Select all

$save["username"] = form_input_validate($_POST["username"], "username", "^[A-Za-z_0-9]+$", false, 3);
and change it to:

Code: Select all

$save["username"] = form_input_validate($_POST["username"], "username", "^[A-Za-z_0-9\.]+$", false, 3);
- Piotr
anthony.warren
Posts: 31
Joined: Fri Nov 22, 2002 10:50 am
Location: Rochester, UK

Thanks

Post by anthony.warren »

Thanks Bulek.

That has done the job.

Anthony
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests