Hi,
First thing, the line:
passwd = strtok(NULL,":\n");
Should become:
passwd = strtok(NULL,":");
Because unix passwd files are in the form:
user:passwd:etc.....
So, the next match for ":\n" does not exist. Also, I believe that passwd
= strtok( NULL, "\n" ); appears in a number of spots, which all need
changing. The password file is a straight "crypt()" style, what does your
unix use?? In the case of Digital Unix it does not actually store the
passwords in the /etc/passwd file. So making the passwd file available to
squid may not be the solution.
Just a few thoughts,
Dave.
----------------------------------------------------------------------
David Richards Ph: +61 7 3864 4347
Network Programmer Fax: +61 7 3864 5272
Computing Services e-mail: dj.richards@qut.edu.au
Queensland University of Technology
----------------------------------------------------------------------
On Sun, 12 Oct 1997, Duncan Anker wrote:
> Hi,
>
> I've been trying to get authentication working on our proxy to
> ease identification of who is visiting what sites.
>
> Keeping a separate password file is not ideal, as I would like
> everyone to be able to use the same password - so I thought I
> could NFS mount the password file from our main UNIX server.
>
> It didn't work. After tracing through the code in client_side.c
> and finding where the passwords are cached, I tried changing
>
> passwd = strtok(NULL,"\n")
>
> to
>
> passwd = strtok(NULL,":\n")\
>
> in the appropriate places, and still no joy. Since according to
> my understanding of strtok, this should allow Apache style password
> files and standard UNIX password files to both work, what have I
> overlooked? Is there another section of code somewhere that needs
> changing?
>
> Before anyone suggests it, yes I have compiled with
> -DUSE_PROXY_AUTH and have a proxy_auth line in my squid.conf, and it
> works fine if I use an Apache style list and don't meddle with the
> code ...
>
> Any suggestions?
>
> TIA
>
> Duncan
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>
Received on Mon Oct 13 1997 - 00:54:10 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:37:17 MST