squid用pam做認證 - BBS
By Tristan Cohan
at 2012-07-14T21:56
at 2012-07-14T21:56
Table of Contents
我的freebsd是8.2-RELEASE
squid是squid-3.1.18
Squid對於來自外部使用的認證方式有很多
其中我安裝時有看到PAM的選項
Google查了一下資料我在
#vi /etc/pam.conf/squid
auth required pam_unix.so try_first_pass
#vi /usr/local/etc/squid/squid.conf 加入
auth_param basic program /usr/local/squid/libexec/pam_auth
auth_param basic children 10
auth_param basic realm My Awesome Squid Cache
auth_param basic credentialsttl 1 hour
acl KnownUsers proxy_auth REQUIRED
http_access allow KnownUsers
#squid -k reconfigure
cache.log都會出現
ERROR: failed to create PAM authenticator
WARNING: failed to release PAM authenticator
ERROR: failed to create PAM authenticator
WARNING: failed to release PAM authenticator
ERROR: failed to create PAM authenticator
WARNING: failed to release PAM authenticator
ERROR: Unexpected PAM converstaion '3/pam_unix: pam_sm_authenticate: UNIX
authentication refused
ERROR: Unexpected PAM converstaion '3/pam_unix: pam_sm_authenticate: UNIX
authentication refused
有人知道pam_auth該怎麼正確使用嗎??
--
squid是squid-3.1.18
Squid對於來自外部使用的認證方式有很多
其中我安裝時有看到PAM的選項
Google查了一下資料我在
#vi /etc/pam.conf/squid
auth required pam_unix.so try_first_pass
#vi /usr/local/etc/squid/squid.conf 加入
auth_param basic program /usr/local/squid/libexec/pam_auth
auth_param basic children 10
auth_param basic realm My Awesome Squid Cache
auth_param basic credentialsttl 1 hour
acl KnownUsers proxy_auth REQUIRED
http_access allow KnownUsers
#squid -k reconfigure
cache.log都會出現
ERROR: failed to create PAM authenticator
WARNING: failed to release PAM authenticator
ERROR: failed to create PAM authenticator
WARNING: failed to release PAM authenticator
ERROR: failed to create PAM authenticator
WARNING: failed to release PAM authenticator
ERROR: Unexpected PAM converstaion '3/pam_unix: pam_sm_authenticate: UNIX
authentication refused
ERROR: Unexpected PAM converstaion '3/pam_unix: pam_sm_authenticate: UNIX
authentication refused
有人知道pam_auth該怎麼正確使用嗎??
--
Tags:
BBS
All Comments
Related Posts
ROOT MOUNT ERROR
By Caitlin
at 2012-06-25T13:24
at 2012-06-25T13:24
Apache Traffic Server
By Jacky
at 2012-06-20T11:39
at 2012-06-20T11:39
Re: tar: Can't translate pathname 中文檔名 to UTF-8
By Xanthe
at 2012-06-20T05:33
at 2012-06-20T05:33
Re: tar: Can't translate pathname 中文檔名 to UTF-8
By Caitlin
at 2012-06-19T22:53
at 2012-06-19T22:53
tar: Can't translate pathname 中文檔名 to UTF-8
By Elvira
at 2012-06-19T11:22
at 2012-06-19T11:22