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? |
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/ |
I've red it already, but this is an old version, and my files take place in other destinations.
The problem is still alive! |
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
|
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? |
htpasswd is a utility. man htpasswd for usage details
|
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? |
hope you have made the appropriate in squid.conf to use the new password file and reloaded squid.
|
I've made it, but I've only reconfigured squid (squid -k reconfigure).
I should reload it? |
I am sorry .. I am so used to the service squid reload command
|
If you want to use authentication based an the passwd file you must use getpwam
|
All times are GMT -5. The time now is 09:23 PM. |