Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Cc: info-gnus-english@gnu.org
Subject: Re: gnus + imap gssapi authentication
Date: Sun, 10 Jun 2012 20:56:05 +0200	[thread overview]
Message-ID: <m3k3zfq9mi.fsf@stories.gnus.org> (raw)
In-Reply-To: <mailman.2200.1338741437.855.info-gnus-english@gnu.org> (Enrico Scholz's message of "Sun, 03 Jun 2012 18:32:22 +0200")

Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> writes:

> With old gnus (e.g. with this from emacs-23.1), my krb5 credentials were
> used. Now, I am asked for username + password.

Sorry; gssapi (and some other authenticators) fell by the wayside during
the reimplementation of nnimap.el, since I didn't have any servers to
test with, or anybody who could test stuff for me.

Could you try applying the following patch and see whether that works?

diff --git a/lisp/nnimap.el b/lisp/nnimap.el
index 83100a5..70151a8 100644
--- a/lisp/nnimap.el
+++ b/lisp/nnimap.el
@@ -100,7 +100,8 @@ Uses the same syntax as `nnmail-split-methods'.")
 
 (defvoo nnimap-authenticator nil
   "How nnimap authenticate itself to the server.
-Possible choices are nil (use default methods) or `anonymous'.")
+Possible choices are nil (use default methods), `gssapi' or
+`anonymous'.")
 
 (defvoo nnimap-expunge t
   "If non-nil, expunge articles after deleting them.
@@ -391,19 +392,22 @@ textual parts.")
       (when nnimap-server-port
 	(push nnimap-server-port ports))
       (let* ((stream-list
-	      (open-protocol-stream
-	       "*nnimap*" (current-buffer) nnimap-address
-	       (nnimap-map-port (car ports))
-	       :type nnimap-stream
-	       :return-list t
-	       :shell-command nnimap-shell-program
-	       :capability-command "1 CAPABILITY\r\n"
-	       :end-of-command "\r\n"
-	       :success " OK "
-	       :starttls-function
-	       (lambda (capabilities)
-		 (when (gnus-string-match-p "STARTTLS" capabilities)
-		   "1 STARTTLS\r\n"))))
+	      (if (eq nnimap-authenticator 'gssapi)
+		  (open-protocol-stream
+		   "*nnimap*" (current-buffer) nnimap-address nnimap-user)
+		(open-protocol-stream
+		 "*nnimap*" (current-buffer) nnimap-address
+		 (nnimap-map-port (car ports))
+		 :type nnimap-stream
+		 :return-list t
+		 :shell-command nnimap-shell-program
+		 :capability-command "1 CAPABILITY\r\n"
+		 :end-of-command "\r\n"
+		 :success " OK "
+		 :starttls-function
+		 (lambda (capabilities)
+		   (when (gnus-string-match-p "STARTTLS" capabilities)
+		     "1 STARTTLS\r\n")))))
 	     (stream (car stream-list))
 	     (props (cdr stream-list))
 	     (greeting (plist-get props :greeting))


-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/

       reply	other threads:[~2012-06-10 18:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.2200.1338741437.855.info-gnus-english@gnu.org>
2012-06-10 18:56 ` Lars Magne Ingebrigtsen [this message]
2012-06-03 16:32 Enrico Scholz
2012-06-05 21:04 ` Enrico Scholz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3k3zfq9mi.fsf@stories.gnus.org \
    --to=larsi@gnus.org \
    --cc=enrico.scholz@informatik.tu-chemnitz.de \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).