LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-09-2010, 05:59 AM   #1
okcomputer44
Member
 
Registered: Jun 2008
Location: /home/laz
Distribution: CentOS/Debian
Posts: 246

Rep: Reputation: 53
SquidGuard LDAP authentication with Active Directory


Hello guys!

I'm having a problem with squidguard filter with AD authentication.

I have downloaded the latest stable source package from squidguard site and I followed the instructions for the ldap(AD) authentication but it does not work at all.

I have googled and tried everything but no luck. (first 30 hits on google)

Anyway this is the LDAP auth part: http://www.squidguard.org/Doc/authentication.html at squidguard and this is how to build the package: http://www.squidguard.org/Doc/ldap.html

The squidguard says:
Quote:
syntax error in configfile /etc/squid/squidGuard.conf line 18
when I put the
Quote:
ldapusersearch
command into the squidguard.conf file.

Otherwise it works well and filter the sites and everything as it should.
When I builded the package with the configure command (--with-ldap=yes)it said that:
Quote:
checking for ldap support... yes
so it definitelly built in already.
So I really don't understand why it does not recognise the ldapusersearch command at all.

If someone has a suggestion or anything please let me know.

Thanks guys!
 
Old 11-09-2010, 10:16 AM   #2
okcomputer44
Member
 
Registered: Jun 2008
Location: /home/laz
Distribution: CentOS/Debian
Posts: 246

Original Poster
Rep: Reputation: 53
Well at least I know that the build version does not recognise ldap at all.

First I erased all the versions of the squidguard with yum.
Then I rebuild the package from zero.

This new builds does not know ldap at all. But it says ldap-support=yes when I made the package with the configure command.

It starts complain straight away at the first line of the ldap part when I start the squidguard.

Same thing as with the another package. Syntax error at line 7. "ldapbinddn"
If I'll know more I'll let you know guys what was wrong.
 
Old 11-14-2010, 05:30 PM   #3
okcomputer44
Member
 
Registered: Jun 2008
Location: /home/laz
Distribution: CentOS/Debian
Posts: 246

Original Poster
Rep: Reputation: 53
Finally I got it worked.

The problem was laid out at the package management.
Even I tried to remove the squidguard rpm(s) it didn’t worked properly.

I have built the new squidguard from zero, on a different machine and it worked straight away.

I’m going to make a tutorial about this, how to install and configure the whole lot.
Right now I can manage users from the Active Directory in Windows 2008 with squid/squidguard!!

The squid and the squidguard are authenticated through the AD.
If the user is not in the appropriate organization and group he/she can’t reach the Internet.
If the user belongs to X group(in AD) there are no filtering. (Boss/Stock holders/Bosses relatives)
If the user belongs to Y group(in AD) the squidguard filters that group but only that. (Users/Robots/etc..)

So right now it works as the MS ISA server. Well even better of course!

There you go guys, this is the install script for CentOS squidguard: http://opensourcetechnology.co.uk/?p=44

Last edited by okcomputer44; 01-31-2011 at 05:25 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS 5.2 LDAP/kerberos authentication fails against Active Directory ccaum Linux - Server 14 03-24-2010 11:15 AM
samba simple ldap - active directory authentication hopbyhop Linux - Server 3 04-07-2009 06:05 PM
ldap authentication (active directory) and using UPN as username td3201 Linux - General 1 10-01-2008 03:33 AM
compiling squid with ldap authentication for active directory ashfaq Linux - Software 0 05-12-2008 01:55 AM
ldap authentication against active directory Hubert Kiyimba Solaris / OpenSolaris 1 03-16-2007 10:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration