Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 10-24-2007, 06:30 AM   #1
LQ Newbie
Registered: Oct 2007
Posts: 2

Rep: Reputation: 0
Seamless proxy authentication using Squid

Hey All,

Im a relativly new to linux as I've only been using ubuntu for about 2 and a half months now. so apologies if this has been asked before.

I have an ubuntu server with apache 2.2.6 compiled, and running on the box. I also have squid 2.6, complied and running fine. a few days ago thanks to browsing many many forms I've also figured out how to get my squid proxy server to authenticate Via LDAP so when a user opens a web browser they have to type there LDAP logon details to use the interweb.

I've been asked by the powers that be, can we now make the proxy server seemless. If a user opens a web browser it will still use their LDAP logon details to authentication but with no users intervention at all.

IE. from the users perspective they open a web brower and vola there on the web. but in the background they open the browser and the squid proxy authenticates them against their LDAP details.

I've tried using the old google machine the closest thing I've come up with was a website getting using perl scripts to authenticate against LDAP but it was for novell (i'll provide the URL in my next post)

havent really come up with much sofar. I've also had a look on the forms here but couldnt find anything thusfar.

I'd be really really greatful for any help
Thanks a mill
Old 10-24-2007, 06:31 AM   #2
LQ Newbie
Registered: Oct 2007
Posts: 2

Original Poster
Rep: Reputation: 0
This is the closest thing i could find to getting squid to authenticate automatically:

but it does really seem to make sense to me.
Old 10-30-2015, 04:40 PM   #3
LQ Newbie
Registered: Oct 2015
Posts: 3

Rep: Reputation: Disabled
Old but relevant

I realize that this is really old, but there are no answers here.

I just wrote a post on how to set up Squid with seamless auth using basic_ncsa_auth and htpasswd. I know that this post asks for an LDAP solution, but it's always nice to have alternatives, especially when they are so easy to set up. I hope this comes in handy.

Here's the full post.
and here's a quick link to making the auth seamless.

Essentially you just set up a user name and password combination for regular users, and for the ip address you want to ignore login requirements for, you set up an acl and add that ip adress to an ip_log file that the acl refers to. You then grant full access based on that acl using http_access in squid.conf.

You can also set this up to work on a dynamic IP address.

Happy Squidding


authentication, ldap, proxy, squid

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Squid proxy authentication inaki Linux - General 0 08-13-2007 02:39 AM
squid proxy authentication satish Linux - Networking 1 01-10-2006 08:36 AM
Squid proxy authentication gubak Linux - Networking 2 11-16-2005 03:34 AM
Squid Proxy, User Authentication chrehmatali Linux - Security 3 05-03-2003 07:12 AM
squid proxy authentication aqoliveira Linux - General 1 02-02-2002 02:01 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:50 AM.

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