Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Sugest for squidguard with active directory

    Scheduled Pinned Locked Moved Forum Feedback
    2 Posts 2 Posters 6.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      fredenais
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • D
        dvserg
        last edited by

        Thx for you work!
        I analyse you updates.

        ps
        Possible good idea create packages posts in Packages area. I read this area frequency other.

        SquidGuardDoc EN  RU Tutorial
        Localization ru_PFSense

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.