[问题] squid用pam做认证

楼主: slinbody (不败地球人)   2012-07-14 21:56:17
我的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该怎么正确使用吗??

Links booklink

Contact Us: admin [ a t ] ucptt.com