Search squid archive

a simple digest authentication example needed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I want to make sure my proxy(version 4.10) digest authentication is fine. I did not find an example on the online documentation and I used this as a reference.

The client is a simple java app that just connects to a page  through the proxy. I use ->Authenticator.setDefault(new Authenticator() { . Which works fine for the basic_ncsa_auth or without authentication

The error I get using the digest authentication is.:

on client side:
java.net.ProtocolException: Server redirected too many  times (20)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1908)
 
I do not see any errors on proxy access .log

Can you please let me know if my config is correct and how can I test my squid proxy digest auth?

Below if my squid.conf

##### LOG ####################
cache_log /var/log/squid/cache.log
access_log /var/log/squid/access.log squid
cache_store_log none
logfile_rotate 10

## disable cache
cache deny all


## Digest Authentication 
auth_param digest program /usr/lib/squid/digest_file_auth  /etc/squid/passwd_digest 
auth_param digest realm squiddigest
#auth_param digest utf8 on
auth_param digest children 20
auth_param digest nonce_garbage_interval 5 minutes
auth_param digest nonce_max_duration 30 minutes
#auth_param digest nonce_max_count 50
auth_param digest nonce_strictness off
#auth_param digest check_nonce_count on


acl no_auth myport 3130
acl digest_users proxy_auth REQUIRED myport 3131 
 
## Permissions list. Do not change the order!
http_access allow no_auth
http_access allow digest_users
http_access deny all

## listening port
http_port 3130 transparent
http_port 3131 transparent



and content of passwd_digest
squid:squiddigest:310dc627ec8633cbbc61d9bc02608287

Thanks,


_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux