Re: Squid and System Password file question

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sat, 29 Aug 1998 00:01:14 +0200

Allen Armstrong wrote:
>
> Hi,
>
> Is there anyway to use Linux's system password file for Squid's
> password authentication? I couldn't find any documentation on the
> matter.

Well, there is a trivial patch that allows you to use a UNIX passwd
file, but it is equally trivial to transform the passwd format:

cat /etc/passwd | cut -d: -f1,2 >/usr/local/squid/etc/passwd

If you'd like to patch Squid to accept Unix style passwd files then edit
src/client_side.c, search for "passwd = strtok" and replace "\n" with
":" on those lines (occurs at two places close to each other).

---
Henrik Nordström
Sparetime Squid Hacker
Received on Fri Aug 28 1998 - 18:58:27 MDT

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