I need help with authentication PAM - SQUID
Hey guys im newbie in linux and ive been working with squid and everything works perfect except for the pam authentication even i tried ncsa and works perfect.. My problem with pam is that when the web ask me for an user and a password i put the one in the system and it doesnt work, the web ask me again for the user and the password... I read in this forum that it was something about the deamon squid.. but like i said im a newbie in linux :-?
here's my /etc/squid/squid.conf:
auth_param basic program /usr/lib/squid/pam_auth
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
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl Safe_ports port 80
acl Safe_ports port 21
acl Safe_ports port 443
acl Safe_ports port 70
acl Safe_ports port 210
acl Safe_ports port 1025-65535
acl Safe_ports port 280
acl Safe_ports port 488
acl Safe_ports port 591
acl Safe_ports port 777
acl CONNECT method CONNECT
http_access allow all password
And in my /etc/pam.d/squid:
auth required pam_unix.so
account required pam_unix.so
Please if someone can help me.. thanks!!
Hi, I did a little search on pam and squid and found this page...
(I don't have an entry for pam in my squid.conf file(shruggs sholders))
when trouble shooting, beware of versions, as with squid, the new version does a lot of things automatically reducing the config file size.
Both squid and iptables are covered really well here.
I hope you find what you need, Glenn
Thanks but those links i already tried... :S
OK, I use squid and iptables with out pam auth. (local network is 2 pc's, both mine)
That's all I got, Glenn
For comparison sakes,
Sorry for all the lines, Glenn
Thank you thank you than you so much... i will try to do all that.. and i let you know.. but thanks...
Please explain, What "web" is asking for a password?
Look for the pam and auth lines, I don't have to deal with pam, maybe it's automatic on my set up.
I thought if you could get yours to work without pam, allowing you to work on the system then you could re-setup pam later.
Regarding, "My problem with pam is that when the web ask me for an user and a password i put the one in the system and it doesnt work, the web ask me again for the user and the password"
What "web" is asking for a password?
Sorry about my english.. i mean when i open a browser (mozilla) with pam auth.. it ask me about the login and password and i put the one in the system and it ask me again.. its like he doesnt recognize it...
This has not happend to me before, so I'm not too sure what the problem is.
Maybe it wants the root password, Have you tried that?
If so, you should be able to change the permissions so the users (/home/(user names)) have execute access.
If it is a web site....
Thanks all of you for try to help but i find out what the problem was.. before i used the squid i download and compile the pam (thing that i shouldnt done) because that destroy my auth pam... and i discovery it because i use the pam in another computer and it works perfectly.. i guess that those things happens when youre newbie in linux and you dont know what youre doing... thank you all!!
Hi, Thank you for posting a solution to your problem, this may help others.
Thanks and all the best, Glenn
|All times are GMT -5. The time now is 12:54 AM.|