Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've been trying to configure a squid with squidguard and MS AD. I've successfuly linked my squid with my AD so far, but now, I want to link my squidguard with the active directory.

I've followed multiple tutorial, but i'm stuck with the same problem : when I launch squid, I have

2013-09-11 16:45:21 [6519] New setting: dbhome: /var/lib/squidguard/db
2013-09-11 16:45:21 [6519] New setting: logdir: /var/log/squid
2013-09-11 16:45:21 [6519] syntax error in configfile /etc/squid3/squidGuard.conf line 4
2013-09-11 16:45:21 [6519] Going into emergency mode

This is the error I get with the squidGuard 1.4 that I compiled with the --with-ldap=yes option.

Here's my squidGuard.conf file :

ldapbinddn CN="Acces AD",OU=Utilisateurs,DC=company,DC=local
ldapbindpass mypassword
ldapcachetime 60

src admin {
 ldapusersearch ldap://192.168.20.1:389/dc=company,dc=local?sAMAccountName?sub?(&(memberof=CN=mygroup%2cOU=Users%2cDC=company%2cDC=local)(sAMAccountName=%s))
}

It seems that my squidGuard build is not compiled with LDAP support, but I did specified the option when I ran the compile script. I searched pretty much everything I could think of in google, but it did not solve my problem, so I was hoping that I may find some enlightenment here.

EDIT :

I installed the debian squidGuard package, and I have some new things in my squidGuard.log :

2013-09-11 17:44:07 [7003] New setting: ldapcachetime: 60
2013-09-11 17:44:07 [7003] syntax error in configfile /etc/squid3/squidGuard.conf line 9
2013-09-11 17:44:07 [7003] Going into emergency mode
2013-09-11 17:44:07 [7004] New setting: dbhome: /var/lib/squidguard/db
2013-09-11 17:44:07 [7004] New setting: logdir: /var/log/squid
2013-09-11 17:44:07 [7004] New setting: ldapbinddn: CN="Acces AD",OU=Utilisateurs,DC=company,DC=local
2013-09-11 17:44:07 [7004] New setting: ldapbindpass: mypassword
2013-09-11 17:44:07 [7004] New setting: ldapcachetime: 60
2013-09-11 17:44:07 [7004] syntax error in configfile /etc/squid3/squidGuard.conf line 9
2013-09-11 17:44:07 [7004] Going into emergency mode
share|improve this question
add comment

1 Answer

Change ldapbinddn CN="Acces AD",OU=Utilisateurs,DC=company,DC=local to

ldapbinddn "CN=Acces AD,OU=Utilisateurs,DC=company,DC=local"
share|improve this answer
    
I changed the line to match yours, but I still have the same error. The line 9 in my config file matches the ldapusersearch ldap://192.168.20.1:389/dc=company,dc=local?sAMAccountName?sub?(&(memberof=CN=my‌​group%2cOU=Users%2cDC=company%2cDC=local)(sAMAccountName=%s)) line. Maybe it is malformed ? Is there any way to make squidGuard more verbose ? –  valentin Sep 13 '13 at 7:24
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.