[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnu-arch-users] [PATCH] ~/.authinfo + command-line prompt mechanism for

From: Matthieu MOY
Subject: [Gnu-arch-users] [PATCH] ~/.authinfo + command-line prompt mechanism for tla 1.2
Date: Mon, 8 Mar 2004 15:38:33 +0100
User-agent: 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
Webdav authentication.

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 !

Attachment: pfs-dav.c
Description: Binary data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]