LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-10-2011, 01:54 PM   #1
uronacid
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Rep: Reputation: 0
LDAP Authentication with Squid/Ubuntu


So,

I'm attempting to set up a proxy server with LDAP authentication in SQUID. I can authenticate via the command prompt and the ldap_auth tool, however when I'm given the prompt to enter my username and password via web browser I cannot authenticate.

Here is my config for LDAP Authentication:
auth_param basic program /usr/lib/squid/ldap_auth -R -b "domain" -D "user" -w "password" -f sAMAccountName=%s -h 192.168.1.1 -v 3
auth_param basic children 5
auth_param basic realm Company Name
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive on

acl localnet src 192.168.0.0/16
acl authuser proxy_auth REQUIRED
http_access allow authuser
http_access allow localnet


If I run "/usr/lib/squid/ldap_auth -R -b "domain" -D "user" -w "password" -f sAMAccountName=%s -h 192.168.1.1 -v 3" from the terminal followed by a username space password then I receive OK as a result. I'm so confused. everything I read says this should work.

Thanks in Adv,

Josh

Last edited by uronacid; 01-10-2011 at 01:56 PM.
 
Old 01-10-2011, 02:23 PM   #2
uronacid
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Original Poster
Rep: Reputation: 0
don't mean to double post but...

God... I should have known... I've been struggling with this LDAP authentication for quite some time. I had it configured properly, but forgot to run sudo squid -k reconfigure.

The problem I was running into was that in the given scenario you cannot configure squid as follows:
acl localnet src 192.168.0.0/16
acl authuser proxy_auth REQUIRED
http_access deny !authuser
http_access allow localnet


I changed this just before I made the post. I rushed to post after changing and testing the config, however I forgot to apply the configuration. Sorry for the confusion.
 
  


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
Using LDAP authentication only on one cache_peer in Squid EricTRA Linux - Security 8 12-04-2009 01:29 AM
LDAP authentication for squid squid 2.6.STABLE16 release 2.fc8 farrukhndm Linux - Security 2 04-03-2008 01:57 AM
filtering by group using squid + ldap as authentication hackintosh Linux - Server 3 10-25-2007 10:49 AM
squid server with ldap authentication guy_ripper Linux - Security 2 03-09-2007 10:40 AM
Squid PAM authentication and LDAP redmat Linux - Newbie 1 09-03-2004 07:22 PM

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

All times are GMT -5. The time now is 02:34 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