From 6a45b2d30c333c3037d7abfac2977921fad884f0 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 3 Mar 2001 21:37:16 +0000 Subject: Should fix the latest Debian bug. svn path=/trunk/; revision=3184 --- pop3.c | 14 ++++++++++++-- 1 file 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) -- cgit v1.2.3