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: auth-source multiple accounts (was: can emacs use the mac os x keychain?) Date: Mon, 26 Jul 2010 14:32:14 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87630211kx.fsf_-___44002.8555611663$1291857437$gmane$org@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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1291857437 2170 80.91.229.12 (9 Dec 2010 01:17:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 01:17:17 +0000 (UTC) Cc: Ding Mailing List 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:17:13 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 1PQV8C-0008T4-Mm for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 02:17:12 +0100 Original-Received: from localhost ([127.0.0.1]:37955 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQV8C-0004x4-3G for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 20:17:12 -0500 Original-Path: usenet.stanford.edu!goblin2!goblin.stu.neva.ru!feeder.erje.net!newsfeed.straub-nv.de!open-news-network.org!news.albasani.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-X-Trace: news.albasani.net Z1BqqTz4I1EVD1Q5TEsuqFkAczKcawNSTbLeHzUylTOW1l/gEV2DFV9XL0csEAG0YMbxOci8bCnKGd0BZbpuVhHHMNE1amlbQwc60k4nrM2wZVGjDuQc2lRBtRmh3nKl Original-X-Complaints-To: abuse@albasani.net Original-NNTP-Posting-Date: Mon, 26 Jul 2010 19:32:20 +0000 (UTC) X-User-ID: AvQVXrfxKgbTaTYqD6Eyjzp/Fd2oijcQuV1IzcCwO4Y= 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:TH23GgRJMYqAmWIy2TQI2aIeBFs= sha1:gjWHk+B4qEJFusFYBgApOVwxHWE= User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-NNTP-Posting-Host: ylo7jvV3A/+/nXIXpdX1NJ/Kn7H7F7byomZZmrr6MDU= Original-Xref: usenet.stanford.edu gnu.emacs.help:180081 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:76367 Archived-At: On Mon, 26 Jul 2010 15:47:30 +0100 Uday S Reddy wrote: USR> Ted Zlatanov wrote: USR> Another question that I always wondered about. Does auth-source allow USR> for multiple logins on the same server/protocol combination? >> >> Not currently. The first one found is picked IIRC. I think it would >> make the UI significantly more complex to allow multiples and perhaps >> confuse users. The advanced users that need that can typically use >> aliases for the server name. Do you see a need for it? USR> Yes, I think it is needed. ... USR> I am not sure what you mean by UI getting complex. The only user USR> interaction seems to be to ask for a passphrase. (There is a problem USR> at the moment because it doesn't say passphrase for which auth-source. USR> So, if somebody happens to use multiple auth-sources with different USR> passphrases, they would be in trouble!) The passphrase query is actually from EPG/EPA I think (you're referring to the decoding of the .gpg file, right?) so it's outside of auth-source. The other source type is the Secrets API which requests the passphrase externally as well. auth-source currently does not interact with the user. Maybe it's better to use auth-source-pick parameters, something like (account "my-account-1") coupled with "account my-account-1" in the netrc file. In Gnus we can do it since each server entry has its own name which can be separate from the actual server address. Will that work in VM, giving a logical name to each account? See auth-source-pick and auth-source-user-or-password for the details; the query data format is pretty simple thanks to Michael Albinus' help recently. Ted