作者 主題: squid+getpwname_auth?  (閱讀 3340 次)

0 會員 與 1 訪客 正在閱讀本文。

310073

  • 可愛的小學生
  • *
  • 文章數: 1
    • 檢視個人資料
squid+getpwname_auth?
« 於: 2011-01-13 23:13 »
freebsd version: 8.1
squid version: 3.1

就是在代理proxy設定好時,開啟瀏覽器有成功開啟使用者密碼驗證

重點來了,不論帳號密碼怎打...就是無法登進去驗證

我的驗證是getpwname_auth 我嘗試過 auth_param basic program /usr/local/squid-3.1/libexec/getpwname_auth /etc/passwd 和/etc/master.passwd
都還是無法使用者驗證通過~!

麻煩幫幫我

==========================================
squid.conf

  1 http_port 3128
  2 cache_dir aufs /tmp/cache 1000 16 256
  3 cache_mem 500 MB
  4 maximum_object_size_in_memory 2048 KB
  5 memory_replacement_policy lru
  6 max_open_disk_fds 0
  7 minimum_object_size 0 KB
  8 maximum_object_size 32768 KB
 15 cache_store_log /usr/local/squid-3.1/var/logs/store.log
 16 cache_access_log /usr/local/squid-3.1/var/logs/access.log
 17 cache_log /usr/local/squid-3.1/var/logs/cache.log
 18
 19 cache_effective_user squid
 20 cache_effective_group squid
 21
 22 acl SSL_ports port 443
 23 acl Safe_ports port 80          # http
 24 acl Safe_ports port 21          # ftp
 25 acl Safe_ports port 443         # https
 26 acl Safe_ports port 70          # gopher
 27 acl Safe_ports port 210         # wais
 28 acl Safe_ports port 1025-65535  # unregistered ports
 29 acl Safe_ports port 280         # http-mgmt
 30 acl Safe_ports port 488         # gss-http
 31 acl Safe_ports port 591         # filemaker
 32 acl Safe_ports port 777         # multiling http
 33
 34 auth_param basic program /usr/local/squid-3.1/libexec/getpwname_auth /etc/passwd
 35 auth_param basic children 5
 36 auth_param basic realm Squid proxy-caching web server
 37 auth_param basic credentialsttl 2 hours
 38 auth_param basic casesensitive off
 39
 40 acl password proxy_auth REQUIRED
 41 http_access allow all password
 42
 43 acl badurl_tests dstdomain www.google.com
 44 http_access allow badurl_tests

 50 #http_access deny all
 51 http_access allow all