From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: auth-source library supports Tramp, Gnus, smtpmail, URL auth Date: Wed, 14 May 2008 16:13:22 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <86abis4mj1.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 1210799439 927 80.91.229.12 (14 May 2008 21:10:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 May 2008 21:10:39 +0000 (UTC) Cc: Daiki Ueno To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 14 23:11:14 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JwOFY-0006fq-Sb for ged-emacs-devel@m.gmane.org; Wed, 14 May 2008 23:11:01 +0200 Original-Received: from localhost ([127.0.0.1]:60486 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JwOEp-00024N-Gt for ged-emacs-devel@m.gmane.org; Wed, 14 May 2008 17:10:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JwOEk-00023d-3n for emacs-devel@gnu.org; Wed, 14 May 2008 17:10:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JwOEi-00023I-Mm for emacs-devel@gnu.org; Wed, 14 May 2008 17:10:09 -0400 Original-Received: from [199.232.76.173] (port=33861 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JwOEi-00023F-HL for emacs-devel@gnu.org; Wed, 14 May 2008 17:10:08 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:48775 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 1JwOEh-0000cv-Vz for emacs-devel@gnu.org; Wed, 14 May 2008 17:10:08 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JwOEf-0008Js-QW for emacs-devel@gnu.org; Wed, 14 May 2008 21:10:05 +0000 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 14 May 2008 21:10:05 +0000 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 14 May 2008 21:10:05 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 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" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:9Y4Hf2qOk5jcEarlWbloynMQjbw= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:97162 Archived-At: I think the auth-source library is ready for normal usage. It supports Tramp (with a patch I just comitted, so it will get to the Emacs CVS when Michael Albinus synchronizes), Gnus (nnimap, nntp, and mail source (IMAP, POP) passwords), SMTP (smtpmail), and URL authentication. Thus the users can put all their Emacs passwords in one place and they will just work. Right now by default that's ~/.authinfo.gpg, which works nicely with epa-file-mode. There are some issues still left: It requires netrc.el and doesn't cache the parse results (the authinfo file will be reopened each time, which is slow with epa-file-mode[1]). OTOH this ensures that whatever you put in the authinfo file will be used immediately, and considering the low frequency of authentication calls I think that's not a bad compromise. It should move out of Gnus since it's used in many places outside. It uses gnus-message but that's easy to fix. It should be documented externally (in its own manual or in the Emacs manual, but the Gnus and Tramp manuals will need to link to the information regardless). Only authinfo/netrc-style files are currently supported, which has so far been sufficient, but maybe we need others. I'd appreciate any comments or suggestions. Ted [1] I am using epa-file-mode, and compared to my old encrypt.el code it's much slower to decrypt a file. Can this be optimized or is it necessary for security? I don't know the internals so take this as a naive question.