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: Re: can emacs use the mac os x keychain? Date: Thu, 29 Jul 2010 08:17:53 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <8739v2s9z2.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> <871vanu08g.fsf@lifelogs.com> <1622C7E7-9B12-4D53-954A-70A4BFBA0775@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1280409510 26947 80.91.229.12 (29 Jul 2010 13:18:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 29 Jul 2010 13:18:30 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 29 15:18:27 2010 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.69) (envelope-from ) id 1OeT0B-0003S7-Oi for ged-emacs-devel@m.gmane.org; Thu, 29 Jul 2010 15:18:24 +0200 Original-Received: from localhost ([127.0.0.1]:46281 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OeT0B-00065h-6b for ged-emacs-devel@m.gmane.org; Thu, 29 Jul 2010 09:18:23 -0400 Original-Received: from [140.186.70.92] (port=45183 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OeT01-00065c-JF for emacs-devel@gnu.org; Thu, 29 Jul 2010 09:18:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OeSzx-00077g-Nx for emacs-devel@gnu.org; Thu, 29 Jul 2010 09:18:13 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:40130) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OeSzx-00077A-E0 for emacs-devel@gnu.org; Thu, 29 Jul 2010 09:18:09 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OeSzs-0003Fq-7W for emacs-devel@gnu.org; Thu, 29 Jul 2010 15:18:04 +0200 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 ; Thu, 29 Jul 2010 15:18:04 +0200 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Jul 2010 15:18:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 40 Original-X-Complaints-To: usenet@dough.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/24.0.50 (gnu/linux) Cancel-Lock: sha1:wm3XKEk0ezkGICJyMbsZYXx2oy4= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:127961 Archived-At: On Thu, 29 Jul 2010 07:31:43 +0300 Adrian Robert wrote: TZ> 1) define a helper protocol to pass auth request parameters in the TZ> environment somehow >> TZ> 2) read the password back securely >> TZ> 3) write an implementation that works with the Mac OS X keychain >> >> Adrian, is there any chance that the NS Emacs port can provide those >> keychain functions through an ELisp layer? It would make it easier and >> more secure to get user passwords, plus users wouldn't need to install >> the helper program. AR> A useful-sounding idea but seems mainly like something that would be AR> a third-party package or maybe part of Aquamacs. Are there any AR> platform-independent parts of the needed functionality that the NS AR> port lacks and Emacs on X11 or W32 has? A third-party package wouldn't get the C-level bindings that are necessary to make it reasonably secure. The platform-independent part is auth-source.el, which I have tried to hook into Emacs wherever authentication is needed. See auth.texi for more details. On Thu, 29 Jul 2010 15:01:50 +0200 Stefan Monnier wrote: SM> I think access to the system's standard keychain facility would be SM> good to have in general, on all systems. Thanks for Michael Albinus' work on auth-source.el, it now supports the Secrets API which is supposed to become the standard where D-Bus is available (so Emacs can interact with this API without helper apps if it has D-Bus support configured). auth.texi hasn't been updated with the Secrets API info because it's still experimental. Assuming we get the NS port access to the Mac OS X keychain, that leaves W32 as the only major platform lacking keychain support. I don't believe W32 has a standard keychain so that may be OK. Ted