Re: http:authorization patch (was Re: [Fwd: Bug#258392: lftp should support encrypted passwords in bookmarks])

Glenn Maynard <[email protected]>
Newsgroups gmane.network.lftp.devel
Message-ID <[email protected]>
On Thu, Aug 12, 2004 at 02:07:14PM +0400, Alexander V. Lukyanov wrote:
> On Thu, Aug 12, 2004 at 01:28:59PM +0400, Alexander V. Lukyanov wrote:
> > On Thu, Aug 12, 2004 at 05:12:10AM -0400, Glenn Maynard wrote:
> > > That's a bit better, but I still have to back up and enter my username.  URLs
> > > copied from browsers usually don't contain it.
> >
> > It should not be very hard to add a setting like http:default-auth to specify
> > default authorization to use if no user is specified. It can be host-specific
> > already (set http:default-auth/*.foo.com user:pass).
> 
> Here is a patch to add http:authorization.

Cool, seems to work.  I havn't looked at the code in a long time; is there
a reason this needs to be http-specific?  If it worked generically, it could
probably supercede ftp:anon-user and ftp:anon-pass: "set auth/ftp://* anonymous:user".

Hiding passwords like "bo list" would be useful, though that'd break
"set > file" scripts without modification (that's one reason I figured it
would fit in bookmarking).

-- 
Glenn Maynard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.