Varun, How are you? Please add following lines into /etc/squid.conf
#------please add following lines after icp_port 0 auth_param basic program /usr/lib/squid/ncsa_auth /usr/lib/squid/etc/passwd auth_param basic children 5 auth_param basic realm Tell me your user name and password auth_param basic credentialsttl 30 minutes #------------------------------------------------------------------- #-Please add following line before any http_access starts ------------------------------------------------------------------ acl authentic proxy_auth REQUIRED http_access allow authentic #------------------------------------------------------------------- -------------------------------------------------------------------- Please use /usr/bin/htpasswd -c /usr/lib/squid/etc/passwd user-id passwd for to add the user and passwd to NCSA database. Please stop/start the squid daemon after added above things. /etc/init.d squid stop /etc/init.d squid start Please letme know,If you have any questions or concerns. Best of Luck. Thanks, Srinivas -----Original Message----- From: Varun [mailto:[EMAIL PROTECTED] Sent: Saturday, May 15, 2004 8:37 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [squid-users] NCSA auth hello, I want to use NCSA based auth with IP of machines. I am using now only IP for acl as follows : acl abc src 192.168.0.1 http_access allow abc I want to add say username and password also for auth using NCSA. I believe I need to add the following line in squid.conf authenticate_program /usr/local/squid/bin/ncsa_auth /usr/local/squid/etc/passwd I am not sure exactly where to add the above line. Futher I need to create the file passwd in /usr/local/squid/etc/ Howto add username and password to the file passwd? What should I add to my present acl in squid.conf to add NCSA auth with username and password ? Thanks in advance Varun
