aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-03-03 21:37:16 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-03-03 21:37:16 +0000
commit6a45b2d30c333c3037d7abfac2977921fad884f0 (patch)
treeaf06c7cdf01598eb0e37b095fad4f2f3aa5c4d4c
parent59f9b53799063574462dae2a34ebf34a89bc8bbf (diff)
downloadfetchmail-6a45b2d30c333c3037d7abfac2977921fad884f0.tar.gz
fetchmail-6a45b2d30c333c3037d7abfac2977921fad884f0.tar.bz2
fetchmail-6a45b2d30c333c3037d7abfac2977921fad884f0.zip
Should fix the latest Debian bug.
svn path=/trunk/; revision=3184
-rw-r--r--pop3.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/pop3.c b/pop3.c
index c5b6d58c..a6224249 100644
--- a/pop3.c
+++ b/pop3.c
@@ -244,8 +244,18 @@ int pop3_getauth(int sock, struct query *ctl, char *greeting)
* OK, we have an authentication type now.
*/
#if defined(KERBEROS_V4) || defined(KERBEROS_V5)
- if (ctl->server.authenticate == A_KERBEROS_V4
- || ctl->server.authenticate == A_KERBEROS_V5)
+ /*
+ * Servers doing KPOP have to go through a dummy login sequence
+ * rather than doing SASL.
+ */
+ if (
+#if INET6_ENABLE
+ strcmp(ctl->server.service, KPOP_PORT)!=0
+#else /* INET6_ENABLE */
+ ctl->server.port != KPOP_PORT
+#endif /* INET6_ENABLE */
+ && (ctl->server.authenticate == A_KERBEROS_V4
+ || ctl->server.authenticate == A_KERBEROS_V5))
return(do_rfc1731(sock, "AUTH", ctl->server.truename));
#endif /* defined(KERBEROS_V4) || defined(KERBEROS_V5) */
#if defined(GSSAPI)