From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.help Subject: Re: auth-source multiple accounts Date: Tue, 27 Jul 2010 09:06:18 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87mxtdvx2d.fsf@lifelogs.com> References: <370a1897-25aa-418f-9631-1570dfa99de3@z7g2000yqb.googlegroups.com> <87633kaess.fsf@lifelogs.com> <8d7c78ee-6ba8-448a-8f86-3d585e1af77f@u32g2000vbc.googlegroups.com> <87vd8z2myy.fsf@lifelogs.com> <01ea3506-d715-491d-b360-3abf34e98013@i31g2000yqm.googlegroups.com> <87r5iq1hjk.fsf@lifelogs.com> <87630211kx.fsf_-_@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1291858026 4093 80.91.229.12 (9 Dec 2010 01:27:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 01:27:06 +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 Dec 09 02:27:00 2010 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.69) (envelope-from ) id 1PQVHg-0003Zd-KO for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 02:27:00 +0100 Original-Received: from localhost ([127.0.0.1]:39900 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQVHf-0001iF-UW for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 20:27:00 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!news2.euro.net!news.mixmin.net!news.albasani.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-X-Trace: news.albasani.net VoXglD34syYdBm/NPpVHATEEZvq/RQO/Cuw5WxogqtgYSlTU3NEg2inpOg7pankKdRyh4npVdLmx9m2mpfC8Hegr5I2z+wOzYQ8bIzmDAaV2IyTOhqniFV1E0m7AVxEF Original-X-Complaints-To: abuse@albasani.net Original-NNTP-Posting-Date: Tue, 27 Jul 2010 14:06:20 +0000 (UTC) X-User-ID: eDO0G7cIuJpr8nEunoIYbrfSvZx0I/+W/+2XHR1Vuw0= X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Cancel-Lock: sha1:PTL1xjwL6CwrjWCtJKxcSzDwf8s= sha1:xp/n5R/qFuAlLwigaa1/adjUDDI= User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-NNTP-Posting-Host: 3DOUTjsLlWfcNxjhdQNsrZem836r81IUQQktWcDqF84= Original-Xref: usenet.stanford.edu gnu.emacs.help:180107 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:76382 Archived-At: On Mon, 26 Jul 2010 22:21:19 +0100 Uday S Reddy wrote: USR> We do have logical account names in VM. Are you saying that we could USR> use them in the netrc file as the "machine", instead of the actual USR> host name? We could. But I suppose the users will wonder why these USR> things are supposed to be called "machines". I mean "machine" will still be the server name but VM will also pass an optional (account "xyz") query parameter to auth-source-user-or-password, which will find "account xyz" in the netrc file. I'll add another optional parameter QUERIES to auth-source-user-or-password. It will be an alist. When a query is not specified you'd still get the first match (thus it's backwards compatible). Does all that sound reasonable? USR> But I am not sure how auth-source-pick can help with this problem. It USR> seems like a way to pick a source file. Sorry, I made a mistake, just see auth-source-user-or-password. auth-source-pick deals with auth-source backends, which VM doesn't care about. Ted