From 82e1d66f6bee1a8837d8d6c89c7ed6b11f2c0a48 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sat, 21 Aug 2010 15:38:16 +0200 Subject: Avoid wedging Exchange 2007 with GSSAPI. Exchange 2007 wedges if we try GSSAPI authentication and fail for lack of suitable credentails (for instance, because the user did not run kinit). Only try GSSAPI automatically if we have credentials. Reported by Patrick Rynhart, Debian Bug #568455, and Alan Murrell, to the fetchmail-users list. --- imap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'imap.c') diff --git a/imap.c b/imap.c index 7c33d8a4..e1c8c93a 100644 --- a/imap.c +++ b/imap.c @@ -565,7 +565,7 @@ static int imap_getauth(int sock, struct query *ctl, char *greeting) } #ifdef GSSAPI - if ((ctl->server.authenticate == A_ANY + if (((ctl->server.authenticate == A_ANY && check_gss_creds("imap", ctl->server.truename) == PS_SUCCESS) || ctl->server.authenticate == A_GSSAPI) && strstr(capabilities, "AUTH=GSSAPI")) { -- cgit v1.2.3