- 论坛徽章:
- 0
|
Red9+squid2.6+samba 2.XXX+smb_auth 0.05
1. vi /etc/samba/smb.conf
workgroup=domainname
security = server
password server=dc
encrypt passwords =yes
2.cp /usr/bin/smb* /usr/local/samba/bin
cp /usr/bin/nmblookup /usr/local/samba/bin
chmod 777 /usr/local/samba/bin -R
(if samba has been installed in this folder, skip,go on the next step)
3.install smb_auth
install smb_auth & create 'proxyauth' with 'allow' in it. put proxyauth in //dc.domainname/netlogon, set proxyauth can be read by internet allowable users.
4.test smb_auth
smbclient //dc.domainname/netlogon -U domainuser
(submit your domainuser's password, if error, check you samba )
/usr/local/smb_auth -W domainname
(after you press enter,input username[space] ******[enter], if error, check smb.conf or whether smb program has been put in /usr/local/samba/bin, check permission of /usr/local/samba/bin, if ok, the next)
5. install squid(./configure --prefix=/usr/local/squid --enable-err-language=Simplify_Chinese --enable-auth-modules=SMB)
make, make install
vi /usr/local/squid/etc/squid.conf
http_port:3128
visiable_host proxy
cache_mem 96 MB
cache_dir ufs /usr/local/squid/var/cache 300 16 256
auth_param basic program /usr/local/smb_auth -W domainname
auth_param basic children 5
acl domainusers proxy_auth REQUIRED
http_access allow all
http_access allow domainusers
6.init squid...
/usr/local/squid/sbin/squid -z
/usr/local/squid/sbin/squid
OK!!
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/22383/showart_152484.html |
|