LinuxQuestions.org
Register a domain and help support LQ
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-13-2006, 03:23 AM   #1
Sleen
Member
 
Registered: Sep 2005
Location: Kampala,Uganda
Distribution: RHEL,FC,SUSE,UBUNTU
Posts: 41

Rep: Reputation: 15
Unhappy squid ncsa authentication doesn't authenticates


Hi all,
I have configured squid and its up and running.Problem is each time users try to put in their username&password pair for authentication,they are denied access to the cache.I configured squid.conf with the following params

auth_param basic program /usr/local/squid/libexec/ncsa_auth /usr/etc/passwd
acl auth proxy_auth REQUIRED
http_access allow auth

and I created and used htpasswd to put in users in /usr/etc subdirectory which i created with owner root and group squid.
I also get the following reports from access.log
985706399.967 2 192.168.35.11 TCP_DENIED/407 1362 Get
and this
WARNING: authenticator #1 (FD 6) exited
WARNING: authenticator #2 (FD 7) exited

Does anyone know what the problem may be?
 
Old 11-13-2006, 03:35 AM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
What command did you use to create the passwd file? Its contents should be usernameasswordhash. For example:
Code:
cat passwd
steve:921.D84us1CGQ
 
Old 11-13-2006, 03:48 AM   #3
Sleen
Member
 
Registered: Sep 2005
Location: Kampala,Uganda
Distribution: RHEL,FC,SUSE,UBUNTU
Posts: 41

Original Poster
Rep: Reputation: 15
I used 2htpaswd.
here is the the entry in my passwd file
#cat passwd
tomslin:WAtNVI57lXhfk

any ideas?
 
Old 11-13-2006, 04:22 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
Sorry for the basic question, but does /usr/local/squid/libexec/ncsa_auth exist and is it executable?
 
Old 11-14-2006, 04:13 AM   #5
Sleen
Member
 
Registered: Sep 2005
Location: Kampala,Uganda
Distribution: RHEL,FC,SUSE,UBUNTU
Posts: 41

Original Poster
Rep: Reputation: 15
It ok.
Yeah it exists and i guess its executable coz i used rpm -ql squid | grep ncsa to chech if its there before including it in squid.conf.
 
  


Reply


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 + ncsa Users Authentication problem shamshadalam Linux - Enterprise 0 04-23-2006 10:27 AM
NCSA authentication goes off Sleen Linux - General 0 10-06-2005 04:41 AM
squid ncsa authentication thillaii Linux - Networking 0 05-06-2005 03:04 AM
squid ncsa authentication jgnasser Linux - Networking 3 01-20-2005 09:40 AM
Squid Authentication Modules NCSA ahmerali Linux - Software 0 10-28-2003 03:57 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration