Re: Proxy Authentication

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Mon, 17 Jan 2000 07:23:46 +0100

Matthew Geddes wrote:

> I apologise in advance if this is the wrong place for this.

It is not.

> I am running squid 2.2 Stable 5 (which I built from the source) on a
> RedHat 5.2 box (Kernel 2.0.36). I am currently trying to get auth_ldap
> working, but when I enter my username / password, I get a message
> telling me that "The document contains no data". NCSA_Auth works fine.
> The username / password has no spaces. They work fine from the command
> prompt (as both root and myself) the permissions on the files are
> -rwxr-xr-x.

Hmm.. "Document contains no data" sounds like some serious error.
Anything said in cache.log?

If I recall correctly Squid won't allow you to specify command arguments
requiring spaces, so if ldap_auth requires arguments with spaces in them
then you need to wrap it in a small shell script providing the
arguments. I guess this also applies to double quotes which are kind of
special in squid.conf...

#!/bin/sh
exec /usr/local/squid/bin/ldap_auth <arguments>

--
Henrik Nordstrom
Squid hacker
Received on Sun Jan 16 2000 - 23:33:35 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:50:26 MST