From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/86816 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: gssapi authentication for nnimap Date: Wed, 10 Feb 2016 10:31:39 +1100 Message-ID: <87egcl795w.fsf@gnus.org> References: <87oaecan6t.fsf@mid.deneb.enyo.de> <87d1sanxyx.fsf@gnus.org> <83a8ncfnkc.fsf@echidna.jochen.org> <8737t3g4hk.fsf@gnus.org> <831t8mgbpi.fsf@echidna.jochen.org> <87io1ykh0h.fsf@linux-m68k.org> <83vb5yhjpo.fsf@echidna.jochen.org> <87wpqeix2s.fsf@linux-m68k.org> <83zivammhs.fsf@echidna.jochen.org> <83wpqd4pk6.fsf@echidna.jochen.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1455060762 20874 80.91.229.3 (9 Feb 2016 23:32:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Feb 2016 23:32:42 +0000 (UTC) Cc: Andreas Schwab , ding@gnus.org, Florian Weimer To: Jochen Hein Original-X-From: ding-owner+M35041@lists.math.uh.edu Wed Feb 10 00:32:29 2016 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aTHll-0007bR-3r for ding-account@gmane.org; Wed, 10 Feb 2016 00:32:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.85) (envelope-from ) id 1aTHlU-0008H4-CW; Tue, 09 Feb 2016 17:32:12 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.85) (envelope-from ) id 1aTHlS-0008GY-5W for ding@lists.math.uh.edu; Tue, 09 Feb 2016 17:32:10 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.85) (envelope-from ) id 1aTHlQ-0008Bm-TT for ding@lists.math.uh.edu; Tue, 09 Feb 2016 17:32:10 -0600 Original-Received: from hermes.netfonds.no ([80.91.224.195]) by quimby.gnus.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1aTHlP-0007E3-HK for ding@gnus.org; Wed, 10 Feb 2016 00:32:07 +0100 Original-Received: from cpe-60-225-211-161.nsw.bigpond.net.au ([60.225.211.161] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aTHl2-00050c-Tw; Wed, 10 Feb 2016 00:31:45 +0100 In-Reply-To: <83wpqd4pk6.fsf@echidna.jochen.org> (Jochen Hein's message of "Tue, 09 Feb 2016 21:05:45 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1aTHl2-00050c-Tw MailScanner-NULL-Check: 1455665506.29672@ItEDPscNfui149XY0WjRLw X-Spam-Status: No X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:86816 Archived-At: Jochen Hein writes: > Right now I have the following diff to nnimap.el. The second hunk > hardcodes the imap port number - I didn't get that to work otherwise. > In the third hunk I call open-gssapi-stream directly - > open-protocol-stream doesn't handle the nnimap-user. Should that be > added to open-protocol-stream? No, open-protocol-stream shouldn't know anything about nnimap. > + (let* ((stream-list > + (if (eq nnimap-stream 'gssapi) > + (list (open-gssapi-stream > + "*nnimap*" (current-buffer) nnimap-address > + (nnimap-map-port (car ports)) nnimap-user)) That looks OK... > My current guess is that my gssapi-session is already authenticated, > but nnimap-open-connection-1 after "ZZZ" is getting confused somehow. > > Some more debugging shows, that the next statement fails: > > (if (not (gnus-string-match-p "[*.] \\(OK\\|PREAUTH\\)" greeting)) > (nnheader-report 'nnimap "%s" greeting) > > That is somewhat expected, since my call to open-gssapi-stream doesn't > set greeting (and I'm almost sure that later capability will also fail). open-protocol-stream returns the greetings and the capabilities, but open-gssapi-stream doesn't do that. So perhaps there should be a wrapper around the latter function that will save the greeting and issue the capability command? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no