[squid-users] Parent proxy login details

Amos Jeffries squid3 at treenet.co.nz
Thu Dec 4 16:32:38 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 5/12/2014 5:17 a.m., Ivan Brazza wrote:
> Hi everybody,
> 
> Currently using squid 2.7 on Windows Server 2008 to forward all
> requests that come in through our corporate proxy to allow
> applications that don't support this to access the outside world
> (essentially doing what cntlm does). Now I was able to get this to
> work by using cache_peer's login=user:pass with my regular windows
> account. However, I need to use an account that has hyphens in the
> name to authenticate with the parent proxy. It seems that this
> doesn't work in squid, I tried using URL encoding for hyphens (%2D)
> so that -tsk-rst-nexus becomes %2Dtsk%2Drst%2Dnexus but that didn't
> work (I also tried with 2 %'s i.e. %%2D). Would anybody be able to 
> help me with this?
> 

When you are using login=user:pass in that form Squid just takes the
characters following "login=" and base-64 encodes them to become the
token for delivery to the peer. The hyphens are nothing special to
Squid, although they may be to the peer.

Amos

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)

iQEcBAEBAgAGBQJUgIymAAoJELJo5wb/XPRjDmkH/0z+xM1fzDmErPeryzQ5Uxt0
/WLgyZ+MlJ+jYEOSlYoO1t9DV2PDfg7L0hEM5Alqm8mLLVSCE9VvfO3ykOZPAAiO
u/J0msqdfEKyVjclQvDdljczBEn0rYQJLOlwPa3Ptb53tFjfcu+2vxn9oJ4q7FWU
bjYZZw4Nl2bl065Onod7ReLbdYxuzYZyc9Fdm2oU3AwBfpCPrbMfgviW4N08JRWl
yr99yc2+yipaVqRIsGwUcb5xKydfQMM72id5swDozr+y7REpI6GHJ2we2zswcJGN
s2Y9YZsG6DdVMvCP9ecsLz+VJUHY+UslVZWwc8gxAWi+CjJKWmKbKWvrBEnrFZw=
=UWu4
-----END PGP SIGNATURE-----


More information about the squid-users mailing list