diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-03-03 21:37:16 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-03-03 21:37:16 +0000 |
commit | 6a45b2d30c333c3037d7abfac2977921fad884f0 (patch) | |
tree | af06c7cdf01598eb0e37b095fad4f2f3aa5c4d4c | |
parent | 59f9b53799063574462dae2a34ebf34a89bc8bbf (diff) | |
download | fetchmail-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.c | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -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) |