Re: FAQ? authenticated ftp.

From: James H. Cloos Jr. <cloos@dont-contact.us>
Date: 08 Jan 1997 08:33:25 -0600

Jonathan Larmour <JLarmour@origin-at.co.uk> writes:

> Ummm.. If you're asking what I'm thinking, doesn't squid already do this,
> e.g. ftp://user:password@ftp.blah.com/

I just tested it on 1.1.2 and it did the right thing. Try getting:

        <URL:ftp://ftp:foo@ftp.io.com/>

You will get an error generated by ftpd, saying that foo isn't a valid
email= address....

The log, however, does leave in the passwd field. Something like this
should be done (in Perlish pseudocode:

        $request =~ s#ftp://([^:]+):([^@]+)@#$2=q(HIDDEN)#e;

-JimC

-- 
James H. Cloos, Jr.         <URL:http://www.jhcloos.com/~cloos/>
cloos@jhcloos.com           Work: cloos@io.com
LPF,Usenix,SAGE,ISOC,ACLU   FB C2 B3 7A 50 44 AE 2D  C7 4C 1E C1 EF 7A FB 30
Received on Wed Jan 08 1997 - 07:03:53 MST

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