April 20, 2024, 05:25:55 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Authenticate different users with different passwords..help!  (Read 3511 times)

Offline lnxman

  • New Member
  • Posts: 1
Authenticate different users with different passwords..help!
« on: January 26, 2005, 04:47:02 AM »
Hey everyone I need some help on this one, I'm running Squid on it's latest stable on a Red Hat 7.3 box, the problem is the following:

1) I have two password files for authentification on my squid configuration, the thing is that whenever any of the users are required to authenticate they can use any password on any of the files, what I want to do is to tie a certain password to specific IP, now this is how I thought it was done:

auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/etc/pass1
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/etc/pass2
#different users on each of the files
.
.
.
acl office src 192.168.1.0/255.255.255.0
acl laptop src 192.168.1.85 #this is the ip that will only have access to the #proxy if it uses a user from the pass2 file
acl password proxy_auth REQUIRED
acl pass2 proxy_auth "/etc/squid/etc/pass2"
other acl's
.
.
http_access allow office password
http_access allow laptop pass2

After trying this and some other crazy combinations I can't get it to work, any IP that requires authentification can use any of the user/passwords from any of the two files I'm using.

Summary: I want to have a password for one group of users and another for a differnt group ,passwords from group 1 won't work on PC's on group 2 and vice-versa, thus tying the passwords to specific IP addresses.

Any help is welcome and I's really appreciated...Thank you!!!!