aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_y.y
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-10-22 14:05:24 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-10-22 14:05:24 +0000
commit21bfb443b78e3520fc650bebe356e2ebd56f03eb (patch)
treeb3704b1e3210ba34d55b019881c6b428a7b9bbbf /rcfile_y.y
parente3d1bdc3de2039e4f96c874d0ce0c5d8c569c6b3 (diff)
downloadfetchmail-21bfb443b78e3520fc650bebe356e2ebd56f03eb.tar.gz
fetchmail-21bfb443b78e3520fc650bebe356e2ebd56f03eb.tar.bz2
fetchmail-21bfb443b78e3520fc650bebe356e2ebd56f03eb.zip
Prevent
auth kerberos_v4, proto KPOP, from fooing up. svn path=/trunk/; revision=2132
Diffstat (limited to 'rcfile_y.y')
-rw-r--r--rcfile_y.y6
1 files changed, 4 insertions, 2 deletions
diff --git a/rcfile_y.y b/rcfile_y.y
index e86fe984..0e8ce1ac 100644
--- a/rcfile_y.y
+++ b/rcfile_y.y
@@ -128,10 +128,12 @@ serv_option : AKA alias_list
| PROTOCOL PROTO {current.server.protocol = $2;}
| PROTOCOL KPOP {
current.server.protocol = P_POP3;
+
+ if (current.server.preauthenticate == A_PASSWORD)
#ifdef KERBEROS_V5
- current.server.preauthenticate = A_KERBEROS_V5;
+ current.server.preauthenticate = A_KERBEROS_V5;
#else
- current.server.preauthenticate = A_KERBEROS_V4;
+ current.server.preauthenticate = A_KERBEROS_V4;
#endif /* KERBEROS_V5 */
#if INET6
current.server.service = KPOP_PORT;