[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnu-arch-users] [PATCH] ~/.authinfo + command-line prompt mechanism for
[Gnu-arch-users] [PATCH] ~/.authinfo + command-line prompt mechanism for tla 1.2
Mon, 8 Mar 2004 15:38:33 +0100
Internet Messaging Program (IMP) 3.1
[First of all, I appologize for the little noise I've made on this list :
Messages are taking several days to be delivered, so, I'v posted multiple copies
of some of them ... ]
Here's a modified version of pfs-dav.c that allows two different mechanisms for
On the first attempt, the file ~/.authinfo is parsed. If both login and password
are provided, the no interactive prompt is done. If password or both login and
password are missing, then, the missing fields are prompted interactively (or
taken from the values given in the url if it was in the form
http://user:address@hidden, which was the previous behavior)
On the next attempts, both login and password are prompted interactivelly.
This works for both HTTP server and HTTP Proxy.
Note that my code is probably not perfect, I surely didn't use the hackerlab
library enough, and anyway, I'm not familiar with C I/O, so you should re-read
it twice before including it in the official branch, but I think this is a good
basis, and this feature is really usefull !
(proxy authentication wasn't provided at all, and http authentication with
password in the url is really not recommended)
The modification is based on the version 1.2 of tla.
envoyé via Webmail/IMAG !
Description: Binary data
- [Gnu-arch-users] [PATCH] ~/.authinfo + command-line prompt mechanism for tla 1.2,
Matthieu MOY <=