Squid Proxy with Authentication Not Returning A Response -


i trying set proxy server using squid interfaces outside server authentication. have configured , set squid , program carry out authentication, when attempt test no response - not error or ok response or @ all.

we haven't tested proper authentication outside server, have list of usernames on file testing should return response. have tested authentication program servers on commandline on server, , returns correct response, suspect problem squid.conf file, we're sure correct configuration.

here relevant squid.conf;

auth_param basic program /path/to/authclient/dist/build/authclient/authclient auth_param basic realm proxy  acl ip1 src address1 #ommitting actual ip addresses these correct ones. acl ip2 src address2     acl authdetails proxy_auth required  acl safe_ports port 1-65535  http_access !safe_ports http_access allow authdetails ip2  http_access deny  http_port proxy.ip.address.here:3128  # code below enable inserting banners users websites - not relevant i'm not sure left in. icap_enable on  icap_service service_req reqmod_precache bypass=1 icap://127.0.0.1:1344/request adaptation_access service_req allow  icap_service service_resp respmod_precache bypass=0 icap://127.0.0.1:1344/response adaptation_access service_resp allow 

for reference, here main part of authclient, written in haskell, should handling authentication. think issue squid.config, included in case.

module main  import control.applicative  import system.environment import system.io  import control.monad  getpeople = map words . lines <$> getcontents  main = getpeople >>= authusers  authusers :: [[string]] -> io () authusers ([user,pass]:xs) =     res <-  if user `elem` userlist return "ok" else return "err"      appendfile "/tmp/authtest" ("got request " ++ user ++" " ++ res ++"\n")     putstrln res     authusers xs authusers (_:xs) = putstrln "err" >> authusers xs authusers _ = return () userlist = #there userlist here. 

we aren't sure going wrong, though in squid.conf. or advice appreciated. in advance!


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -