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 08-12-2004, 03:51 AM   #1
gubak
Member
 
Registered: Jul 2004
Posts: 332

Rep: Reputation: 30
Squid authentication


I use RedHat9

I find the ncsa_auth and the password files by "Search for Files" mail menu program, and I configured the squid authentication like that:

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

acl password proxy_auth REQUIRED
http_access allow password

When I want to use internet by any browser (Internet explorer 6, Konqueror) the authentication program appears. It's ok, but when I type the username and password the authentication program doesn't accept them.

My passwd file is like that:

root:x:0:0:root:/root:/bin/bash
user1:x:503:503:user1:/home/user1:/bin/bash
etc.


Did I forget something or my passwd file is incorrect?

Last edited by gubak; 10-23-2006 at 06:21 AM.
 
Old 08-12-2004, 05:14 AM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
It appears you are trying to use the /etc/passwd file - the file that is used to authenticate users before they log on to the linux/unix system.

If you want to use this file, I think you need to use getpwam instead of ncsa,

Check this site if you want to use ncsa auth.
http://www.devet.org/squid/proxy_auth/

Last edited by ppuru; 08-12-2004 at 05:39 AM.
 
Old 08-12-2004, 06:49 AM   #3
gubak
Member
 
Registered: Jul 2004
Posts: 332

Original Poster
Rep: Reputation: 30
I've red it already, but this is an old version, and my files take place in other destinations.
The problem is still alive!

Last edited by gubak; 08-12-2004 at 06:59 AM.
 
Old 08-12-2004, 07:01 AM   #4
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
If you want nsca auth, you will need to create a file as per htpasswd specs. If you have apache installed, then you should find htpasswd utility on your system. Create a password file using htpasswd and assign this password file to ncsa_auth
 
Old 08-13-2004, 12:25 AM   #5
gubak
Member
 
Registered: Jul 2004
Posts: 332

Original Poster
Rep: Reputation: 30
I've found the htpasswd file, and I've seen its contents by kwrite.
I've seen only unknow characters.

How can I create a password file using htpasswd?
 
Old 08-13-2004, 12:32 AM   #6
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
htpasswd is a utility. man htpasswd for usage details
 
Old 08-13-2004, 01:46 AM   #7
gubak
Member
 
Registered: Jul 2004
Posts: 332

Original Poster
Rep: Reputation: 30
I've made a new pasword file, but the proxy still doesn't allow me to use internet. It seems like authentication program doesn't recognize my password.
Have you any other idea?
 
Old 08-13-2004, 01:57 AM   #8
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
hope you have made the appropriate in squid.conf to use the new password file and reloaded squid.
 
Old 08-13-2004, 02:13 AM   #9
gubak
Member
 
Registered: Jul 2004
Posts: 332

Original Poster
Rep: Reputation: 30
I've made it, but I've only reconfigured squid (squid -k reconfigure).
I should reload it?
 
Old 08-13-2004, 04:46 AM   #10
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
I am sorry .. I am so used to the service squid reload command
 
Old 08-13-2004, 08:31 AM   #11
arno
Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515

Rep: Reputation: 30
If you want to use authentication based an the passwd file you must use getpwam
 
  


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
SQUID authentication jhp Linux - Software 2 06-14-2005 10:39 AM
squid authentication agent bigote Linux - Newbie 0 09-23-2004 02:33 AM
Squid - Authentication TechnoBod Linux - Networking 3 06-23-2003 07:19 AM
Squid authentication! yenonn Linux - Networking 1 03-21-2003 07:58 AM
squid authentication mayankjohri Linux - General 2 03-13-2003 11:33 PM

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

All times are GMT -5. The time now is 04:08 PM.

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