Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-12-2004, 03:51 AM
|
#1
|
Member
Registered: Jul 2004
Posts: 332
Rep:
|
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.
|
|
|
08-12-2004, 05:14 AM
|
#2
|
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791
Rep:
|
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.
|
|
|
08-12-2004, 06:49 AM
|
#3
|
Member
Registered: Jul 2004
Posts: 332
Original Poster
Rep:
|
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.
|
|
|
08-12-2004, 07:01 AM
|
#4
|
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791
Rep:
|
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
|
|
|
08-13-2004, 12:25 AM
|
#5
|
Member
Registered: Jul 2004
Posts: 332
Original Poster
Rep:
|
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?
|
|
|
08-13-2004, 12:32 AM
|
#6
|
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791
Rep:
|
htpasswd is a utility. man htpasswd for usage details
|
|
|
08-13-2004, 01:46 AM
|
#7
|
Member
Registered: Jul 2004
Posts: 332
Original Poster
Rep:
|
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?
|
|
|
08-13-2004, 01:57 AM
|
#8
|
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791
Rep:
|
hope you have made the appropriate in squid.conf to use the new password file and reloaded squid.
|
|
|
08-13-2004, 02:13 AM
|
#9
|
Member
Registered: Jul 2004
Posts: 332
Original Poster
Rep:
|
I've made it, but I've only reconfigured squid (squid -k reconfigure).
I should reload it?
|
|
|
08-13-2004, 04:46 AM
|
#10
|
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791
Rep:
|
I am sorry .. I am so used to the service squid reload command
|
|
|
08-13-2004, 08:31 AM
|
#11
|
Member
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515
Rep:
|
If you want to use authentication based an the passwd file you must use getpwam
|
|
|
All times are GMT -5. The time now is 02:57 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|