Sugest for squidguard with active directory
-
Gentlemen,
I use squid integrated with Active Directory and I adopt in my standard firstname.lastname of my user net eg.: frederick.braga or wagner.siquara, when I started using pfsense realized that this was not possible to be used in squidguard, I made a change in function is_username in file \usr\local\pkg\squidguard_configurator.inc
Before
function is_username($username)
{
$unm_fmt = "^'[a-zA-Z_0-9-]{1,}'$";
return is_string($username) && eregi($unm_fmt, trim($username));
}–----------------------------------------------------------------------------
check name
------------------------------------------------------------------------------
After
function is_username($username)
{
$unm_fmt = "^'[a-zA-Z_0-9.-]{1,}'$";
return is_string($username) && eregi($unm_fmt, trim($username));
}–----------------------------------------------------------------------------
check name
------------------------------------------------------------------------------
Note the change in the line in 1814 including one dot ". " And this solved my problem, I saw a post on the forum reported problems similar to this
I suggest this change for the next updates of squidquard already have this feature more than pfsense.
Thank you.
Frederick Braga Freire
Eunápolis – Bahia - Brazil -
Thx for you work!
I analyse you updates.ps
Possible good idea create packages posts in Packages area. I read this area frequency other.