From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/86823 Path: news.gmane.org!not-for-mail From: Jochen Hein Newsgroups: gmane.emacs.gnus.general Subject: Re: gssapi authentication for nnimap Date: Wed, 10 Feb 2016 05:16:33 +0100 Message-ID: <83si1142u6.fsf@echidna.jochen.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> <87egcl795w.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1455078136 8605 80.91.229.3 (10 Feb 2016 04:22:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Feb 2016 04:22:16 +0000 (UTC) Cc: Andreas Schwab , ding@gnus.org, Florian Weimer To: Lars Ingebrigtsen Original-X-From: ding-owner+M35048@lists.math.uh.edu Wed Feb 10 05:22:04 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 1aTMI0-0007nc-1R for ding-account@gmane.org; Wed, 10 Feb 2016 05:22:04 +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 1aTMHK-0001xd-Eo; Tue, 09 Feb 2016 22:21:22 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.85) (envelope-from ) id 1aTMHH-0001x9-84 for ding@lists.math.uh.edu; Tue, 09 Feb 2016 22:21:19 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.85) (envelope-from ) id 1aTMHC-000368-Na for ding@lists.math.uh.edu; Tue, 09 Feb 2016 22:21:19 -0600 Original-Received: from smtp.dinoex.de ([188.40.204.4] ident=root) by quimby.gnus.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1aTMH8-0006lX-6U; Wed, 10 Feb 2016 05:21:10 +0100 Original-Received: from smtp.dinoex.de (uucp@smtp.dinoex.de [188.40.204.4]) by smtp.dinoex.de (8.15.2/8.15.1) with ESMTPS id u1A4K4Dk050232 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 10 Feb 2016 05:20:05 +0100 (CET) (envelope-from jochen@jochen.org) Original-Received: (from uucp@localhost) by smtp.dinoex.de (8.15.2/8.15.1/Submit) with UUCP id u1A4K4fS050231; Wed, 10 Feb 2016 05:20:04 +0100 (CET) (envelope-from jochen@jochen.org) Original-Received: from echidna.jochen.org (echidna.jochen.org [IPv6:fd23:e163:19f7:1234:222:4dff:fe7c:d76a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by jupiter.jochen.org (Postfix) with ESMTPSA id 5E1401E8; Wed, 10 Feb 2016 05:16:33 +0100 (CET) X-Message-Flag: This space is intentionally left blank In-Reply-To: <87egcl795w.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 10 Feb 2016 10:31:39 +1100") User-Agent: Gnus/5.130015 (Ma Gnus v0.15) Emacs/24.4 (gnu/linux) X-Milter: Spamilter (Reciever: smtp.dinoex.de; Sender-ip: 188.40.204.4; Sender-helo: smtp.dinoex.de;) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (smtp.dinoex.de [188.40.204.4]); Wed, 10 Feb 2016 05:20:06 +0100 (CET) X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:86823 Archived-At: Lars Ingebrigtsen writes: >> 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? That seems to be the way forward, yes. I guess that the wrapper willl look a lot like open-protocol-stream... I'll have a try in the next few days. Jochen -- The only problem with troubleshooting is that the trouble shoots back.