From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: authentification with url-retrieve Date: Thu, 29 Jan 2009 23:05:01 +0100 Message-ID: <874ozhlqeq.fsf@tux.homenetwork> References: <861vv4lbgs.fsf@lifelogs.com> <874p002xrp.fsf@tux.homenetwork> <86r633hxzh.fsf@lifelogs.com> <86hc3tg725.fsf@lifelogs.com> <86d4egba42.fsf@lifelogs.com> <861vuq3wzp.fsf__10403.8498750471$1232993607$gmane$org@lifelogs.com> <87eiypyjnv.fsf@tux.homenetwork> <86wscdc1qy.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1233267139 25981 80.91.229.12 (29 Jan 2009 22:12:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Jan 2009 22:12:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 29 23:13:33 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LSf8d-0005WU-CW for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Jan 2009 23:13:31 +0100 Original-Received: from localhost ([127.0.0.1]:53659 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LSf7L-0005Bz-2m for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Jan 2009 17:12:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LSf6w-00059S-FO for help-gnu-emacs@gnu.org; Thu, 29 Jan 2009 17:11:46 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LSf6v-000587-Tq for help-gnu-emacs@gnu.org; Thu, 29 Jan 2009 17:11:46 -0500 Original-Received: from [199.232.76.173] (port=54411 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LSf6v-00057x-Lf for help-gnu-emacs@gnu.org; Thu, 29 Jan 2009 17:11:45 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:54853 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LSf6v-0003tP-5m for help-gnu-emacs@gnu.org; Thu, 29 Jan 2009 17:11:45 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LSf6r-000416-Lq for help-gnu-emacs@gnu.org; Thu, 29 Jan 2009 22:11:41 +0000 Original-Received: from 137.77.197-77.rev.gaoland.net ([77.197.77.137]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Jan 2009 22:11:41 +0000 Original-Received: from thierry.volpiatto by 137.77.197-77.rev.gaoland.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Jan 2009 22:11:41 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 53 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 137.77.197-77.rev.gaoland.net User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:wMPnfKv718vRBJArMUaGpjVL3+k= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:61767 Archived-At: Ted, another thing: Is there something to set to avoid tramp trying to read authinfo file in the case we use ssh-agent and/or we /su(do)::/some_files? Ted Zlatanov writes: > On Thu, 29 Jan 2009 11:58:37 +0100 Thierry Volpiatto wrote: > > TV> (epa should have a time-out to cache passphrase, but i didn't find it) > > That's actually in a patch I will submit to Emacs once it's out of > pretest and the CVS tree is open. You can find it in the emacs-devel > archives if you want it sooner, let me know if you need a specific > pointer. I have it, i will try it and tell you how it work here. Thank you. http://article.gmane.org/gmane.emacs.devel/106168/match=epa > TV> In my config, i use variables that are not supported by the authinfo > TV> scheme (e.g emms-lastfm...) so i fetch the login/password like that: > TV> (don't call gpg one time for user and one time for password) > > TV> ,---- > TV> | (setq emms-lastfm-user-pwd > TV> | (auth-source-user-or-password '("login" "password") > TV> | "ws.audioscrobbler.com:80" > TV> | "http")) > TV> | > TV> | (setq emms-lastfm-username (car emms-lastfm-user-pwd)) > TV> | (setq emms-lastfm-password (cadr emms-lastfm-user-pwd)) > TV> `---- > > TV> The same for anything-delicious.el that use actually curl and wget to > TV> post. > > TV> So now when i start emacs, i am prompted only once for gpg > TV> passphrase. :) > > Yeah, that's nice! It's exactly why I wrote it, and I want auth-source > to be hooked into every package that can use it. So if you want, tell > the emms-* maintainer about auth-source and maybe they will support it > so you don't have to do this kind of specific customization. I can help > with a patch if necessary. > > Thanks > Ted > -- A + Thierry Volpiatto Location: Saint-Cyr-Sur-Mer - France