Hi,
i have read the article User Authentication for the squid proxy in E-Smith 4.1.1at
http://linux.made-to-order.net/article.php&mode=thread&order=0pls correct me if i am wrong:
we need to create a directory in /usr/local/
1)# mkdir pam_auth
then mount the floopy disk
2) #mount /dev/fd1 -t vfat /mnt/floopy
3) #tar -xzvf pam_auth.tar.gz
4)put file in place and set correct permissions
#mkdir /usr/local/squid/bin
#mv pam_auth /usr/local/squid/bin
#chown root /usr/local/squid/bin/pam_auth
#chmod u+s /usr/local/squid/bin/pam_auth
5)add a squid config file for pam
pico /etc/pam.d/squid
add these two lines
auth required /lib/security/pam_unix.so
account required /lib/security/pam_unix.so
or for ncsa_auth
cp /stc/shadow /usr/etc/passwd
what is this ncsa_auth mean :
did i ned this ? or i just need to :
pico /etc/pam.d/squid
add these two lines
auth required /lib/security/pam_unix.so
account required /lib/security/pam_unix.so
6)add a template to e-smith for the squid.conf file
mkdir /etc/e-smith/templates-custom/etc/squid/squid.conf
pico /etc/e-smith/templates-custom/etc/squid/squid.conf/90AuthAdd
add these lines
authenticate_program /usr/local/squid/bin/pam_auth
authenticate_children 5
acl pwdprotect proxy_auth REQUIRED
http_access allow pwdprotect
or for ncsa_auth
authenticate_program usr/local/squid/bin/ncsa_auth /usr/etc/passwd
authenticate_children 5
acl pwdprotect proxy_auth REQUIRED
http_access allow pwdprotect localhost
what is the ncsa_auth for ?
7)copy the original template-begin
cp /etc/e-smith/templates/etc/squid/squid.conf/template-begin /etc/e-smith/templates-custom/etc/squid/squid.conf/template-begin
edit the access rules to remove the allow localhost
pico /etc/e-smith/templates-custom/etc/squid/squid.conf/template-begin
at approx line 1079 you will find http_access allow localhost comment it by puttting a # in front of the line

expand the template and restart squid
/sbin/e-smith/signal-event network-create
thanks
hoay fern