SquidGuard LDAP Config issue



  • My SquidGuard config:

    ============================================================

    SquidGuard configuration file

    This file generated automaticly with SquidGuard configurator

    (C)2006 Serg Dvoriancev

    email: dv_serg@mail.ru

    ============================================================

    logdir /var/squidGuard/log
    dbhome /var/db/squidGuard
    ldapbinddn cn=Administrator,cn=Users,dc=contoso,dc=com
    ldapbindpass <password>ldapprotover 3

    src SquidUsers {
    ldapusersearch ldap://192.168.0.111/DC=contoso,DC=com?sAMAccountName?sub?(&(sAMAccountName=%s)(memberOf=OU=Squid_Users,DC=contoso,DC=com))
    }

    dest T1 {
    domainlist T1/domains
    redirect http://127.0.0.1:80/sgerror.php?url=403 ERR_SECURE_CONNECT_FAIL&a=%a&n=%n&i=%i&s=%s&t=%t&u=%u
    }

    rew safesearch {
    s@(google../search?.q=.)@&safe=active@i
    s@(google..
    /images.q=.)@&safe=active@i
    s@(google../groups.q=.)@&safe=active@i
    s@(google..
    /news.q=.)@&safe=active@i
    s@(yandex../yandsearch?.text=.)@&fyandex=1@i
    s@(search.yahoo..
    /search.p=.)@&vm=r&v=1@i
    s@(search.live../.q=.)@&adlt=strict@i
    s@(search.msn..
    /.q=.)@&adlt=strict@i
    s@(.bing..*/.q=.)@&adlt=strict@i
    }

    acl  {

    SquidUsers  {
    pass !T1 none
    redirect http://127.0.0.1:80/sgerror.php?url=403 &a=%a&n=%n&i=%i&s=%s&t=%t&u=%u
    }

    default  {
    pass !T1 none
    redirect http://127.0.0.1:80/sgerror.php?url=403 ERR_SECURE_CONNECT_FAIL&a=%a&n=%n&i=%i&s=%s&t=%t&u=%u
    }
    }

    ###########################

    So my issue is that when I run a config check i get this:

    2018-03-24 15:32:05 [37961] New setting: logdir: /var/squidGuard/log
    2018-03-24 15:32:05 [37961] New setting: dbhome: /var/db/squidGuard
    2018-03-24 15:32:05 [37961] New setting: ldapbinddn: cn=Administrator,cn=Users,dc=contoso,dc=com
    2018-03-24 15:32:05 [37961] syntax error in configfile /usr/local/etc/squid/squidGuard.conf line 11
    2018-03-24 15:32:05 [37961] Going into emergency mode
    2018-03-24 15:32:05 [37961] ending emergency mode, stdin empty

    ################################

    And FYI line 11 is the password line, i dont understand what is wrong?</password>