diff options
-rw-r--r-- | rcfile_l.l | 4 | ||||
-rw-r--r-- | rcfile_y.y | 6 |
2 files changed, 6 insertions, 4 deletions
@@ -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; } @@ -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; |