LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-13-2004, 06:56 AM   #1
gubak
Member
 
Registered: Jul 2004
Posts: 332

Rep: Reputation: 30
Authentication problems


I use RedHat9, squid 2.5. STABLE1

I've tried to make proxy authentication but I couldn't. This is the part of my squid.conf :

auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/passwd
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server - SO Coka
auth_param basic credentialsttl 2 hours

acl password proxy_auth REQUIRED
acl opstina src 5.2.2.1-5.2.2.20/255.255.255.255

http_access allow password
http_access allow opstina

In almost every place where I've read about proxy authentication it was written that " Go to the ../auth_modules/NCSA directory and give
# make
# make install
At first I didn't find the ../auth_modules/NCSA directory. Where is it?

After that I faund (by the Search for Files main menu program) the ncsa_auth file in the /usr/lib/squid/ directory but I dont know how to check if it is a correct program and ready to run.

After that I made the passwd file (htpasswd -c /etc/squid/passwd username).

After that I reloaded the squid.conf , but the result is negativ.

When I am trying to use internet the login prompt appears, I type the username and the password, but I can't use internet and the login prompt appears again. But if I comment the authentication lines the internet is ok.


Has anybody idea what is the problem by me?

Last edited by gubak; 10-04-2006 at 12:03 AM.
 
Old 08-14-2004, 01:43 AM   #2
zatriz
Member
 
Registered: Aug 2003
Location: Seattle, Wa
Distribution: Fedora,Trustix,Debian
Posts: 290

Rep: Reputation: 30
I had similar problem with auth a while back but it was with apache it maybe be the same issue though. Check that permissions for the passwd file and others and make sure that the correct user squid in this case has ownership and rwx permissions to it.
 
Old 08-15-2004, 12:20 PM   #3
gubak
Member
 
Registered: Jul 2004
Posts: 332

Original Poster
Rep: Reputation: 30
I've tried to use internet as root, but the problem is the same.
 
Old 08-15-2004, 06:04 PM   #4
zatriz
Member
 
Registered: Aug 2003
Location: Seattle, Wa
Distribution: Fedora,Trustix,Debian
Posts: 290

Rep: Reputation: 30
It doesn't matter that you are loged into the computer as root, because the squid service is being run as the user squid and web as the web user usually apache or httpd so if they dont have the proper permissions to the password files etc squid wont authenicate you .
 
Old 08-16-2004, 01:56 AM   #5
gubak
Member
 
Registered: Jul 2004
Posts: 332

Original Poster
Rep: Reputation: 30
Thank you so much, it's wor perfektly!
 
Old 02-01-2005, 04:25 PM   #6
xbaez
Member
 
Registered: Mar 2004
Location: USA
Distribution: Ubuntu
Posts: 291

Rep: Reputation: 30
Thanks for your support

It works perfectly here as well
 
Old 03-20-2006, 07:09 AM   #7
ujjwal_wadhawan
LQ Newbie
 
Registered: Mar 2006
Posts: 6

Rep: Reputation: 0
i would be glad if you can tell me how can we implement SQUID login through a PHP+MySQL combi.....

like ...

i type "www(dot)anyaddress(dot)com"

i get a login page.....

i put the details

now i can browse any website......


and if possible...can i logout..??
 
  


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
GNOME authentication problems killcart Linux - Software 1 10-10-2005 01:58 PM
Authentication problems with Smbmount Thakowbbery Linux - Networking 9 03-22-2005 09:28 AM
proftpd authentication problems zildjian3670 Linux - Software 0 02-27-2004 01:13 PM
authentication problems hobylinux Linux - Networking 2 10-03-2003 12:24 AM
QMail Authentication problems MikeeX Linux - Software 3 08-05-2003 05:55 PM

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

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