]> Pileus Git - ~andy/fetchmail/commitdiff
Prevent
authorEric S. Raymond <esr@thyrsus.com>
Thu, 22 Oct 1998 14:05:24 +0000 (14:05 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 22 Oct 1998 14:05:24 +0000 (14:05 -0000)
        auth kerberos_v4,
        proto KPOP,

from fooing up.

svn path=/trunk/; revision=2132

rcfile_l.l
rcfile_y.y

index 2be9938b8a2881d2507cee59bdfc9c6c7bb0cce7..b49311b4f1d4c1ae72ac5bb3061a86aee2fae7a5 100644 (file)
@@ -42,9 +42,9 @@ service               { return SERVICE; }
 port           { return PORT; }
 interval       { return INTERVAL; }
 auth(enticate)?        { return AUTHENTICATE; }
-kerberos_v4    { return KERBEROS4; }
+kerberos(_v)?4 { return KERBEROS4; }
+kerberos(_v)?5 { return KERBEROS5; }
 kerberos       { return KERBEROS; }
-kerberos_v5     { return KERBEROS5; }
 timeout                { return TIMEOUT;}
 envelope       { return ENVELOPE; }
 qvirtual       { return QVIRTUAL; }
index e86fe984c8eef3fbe9193e52984ceebf96ab841e..0e8ce1ac90a17288583f8c8b596427cf8e6bc858 100644 (file)
@@ -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;