From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/15787 Path: news.gmane.org!not-for-mail From: asjo@koldfront.dk (Adam =?iso-8859-1?Q?Sj=F8gren?=) Newsgroups: gmane.emacs.gnus.user,gmane.comp.gnu.gsasl.general Subject: Connecting to imap on a Microsoft Exchange server with gsasl Date: Sat, 08 Sep 2012 19:00:33 +0200 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Message-ID: <87392sih5a.fsf@topper.koldfront.dk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1347123668 9854 80.91.229.3 (8 Sep 2012 17:01:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Sep 2012 17:01:08 +0000 (UTC) Cc: help-gsasl@gnu.org To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sat Sep 08 19:01:10 2012 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TAOP3-0004WM-7A for gegu-info-gnus-english@m.gmane.org; Sat, 08 Sep 2012 19:01:05 +0200 Original-Received: from localhost ([::1]:54326 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAOP0-0003Ha-3H for gegu-info-gnus-english@m.gmane.org; Sat, 08 Sep 2012 13:01:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38430) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAOOx-0003H7-Jp for info-gnus-english@gnu.org; Sat, 08 Sep 2012 13:01:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TAOOw-0003Pq-A0 for info-gnus-english@gnu.org; Sat, 08 Sep 2012 13:00:59 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:42100) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TAOOv-0003Ph-Vk for info-gnus-english@gnu.org; Sat, 08 Sep 2012 13:00:58 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TAOOo-0004JS-U0 for info-gnus-english@gnu.org; Sat, 08 Sep 2012 19:00:50 +0200 Original-Received: from 2505ds5-by.0.fullrate.dk ([89.150.142.116]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 08 Sep 2012 19:00:50 +0200 Original-Received: from asjo by 2505ds5-by.0.fullrate.dk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 08 Sep 2012 19:00:50 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 84 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 2505ds5-by.0.fullrate.dk X-Face: )qY&CseJ?.:=8F#^~GcSA?F=9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97, Q(^@xk}n4Ou rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/IS9lMJ ^St'=VZBR List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:15787 gmane.comp.gnu.gsasl.general:447 Archived-At: I am using Gnus to pull down my emails via imap from a Microsoft Exchange server to my Ubuntu desktop (i.e. just using imap as a mail-source, like pop). This works fine typing my password into Gnus. However, we use Kerberos to authenticate on our Linux machines (login, sudo, www, the works) - against the company Active Directory - so I have a Kerberos ticket, and should be able to fetch email without having to type my password again, I think. I tried configuring Gnus to do this, but using :stream gssapi and :authenticate gssapi didn't work. Digging a little revealed that Gnus tries to use gsasl to connect and authenticate, so I tried running gsasl by hand to see if that would make me any wiser. The result is: $ gsasl --client --imap --authentication-id=3Dmy.initials --starttls --= verbose server.name.elided Trying `server.name.elided... * OK Microsoft Exchange Server 2007 IMAP4 service ready . STARTTLS . OK Begin TLS negotiation now. . CAPABILITY * CAPABILITY IMAP4 IMAP4rev1 AUTH=3DNTLM AUTH=3DGSSAPI AUTH=3DPLAIN IDL= E NAMESPACE LITERAL+ . OK CAPABILITY completed. . AUTHENTICATE GSSAPI + error: Server did not return expected SASL data (it must begin with '+ = '): + $ = Hm. Does the server really return "+" while "+ " was expected? Let me check, using gnutls-cli, just to be sure: $ gnutls-cli --insecure --starttls --crlf -p imap server.name.elided Resolving 'server.name.elided'... Connecting to 'ip.address.elided:143'... - Simple Client Mode: * OK Microsoft Exchange Server 2007 IMAP4 service ready 1 STARTTLS 1 OK Begin TLS negotiation now. ^D *** Starting TLS handshake - Certificate type: X.509 [...cert info elided...] - Compression: NULL 2 AUTHENTICATE GSSAPI + ^C $ = Indeed it does, no space! Does a work around for this exist, I am being foolhardy in attempting to get this working at all, am I overlooking something obvious, or? Any good ideas, war stories about AD and Exchange, or anything else is much appreciated :-) This is on Ubuntu 10.04, gsasl 1.4.4, GNU Emacs snapshot from Julien Danjous repository, Ma Gnus from git. (I just tried on an Ubuntu 12.04 which has gsasl 1.6.1; on that machine the gsasl command ends with "error: server did not return a token" after the plus is received.) I tried using gssapi in Thunderbird as well, just to test - it fails with a vague message about the server not accepting the ticket, but the message looks rather generic, so I don't know that this necessarily is valuable information. Best regards, Adam P.S. I have taken the liberty of crossposting this to both the gsasl mailing list and the Gnus user list - feel free to peel any one off. -- = "Hur l=E5ngt man =E4n har kommit Adam Sj= =F8gren =E4r det alltid l=E4ngre kvar" asjo@koldfront= .dk