From 21bfb443b78e3520fc650bebe356e2ebd56f03eb Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 22 Oct 1998 14:05:24 +0000 Subject: Prevent auth kerberos_v4, proto KPOP, from fooing up. svn path=/trunk/; revision=2132 --- rcfile_y.y | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'rcfile_y.y') 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; -- cgit v1.2.3