From 6421b138290aeecda414de1c753ace9d04681f7c Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 3 Mar 1998 21:22:36 +0000 Subject: Kerberos V support. svn path=/trunk/; revision=1682 --- rcfile_y.y | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'rcfile_y.y') diff --git a/rcfile_y.y b/rcfile_y.y index cb63fbf1..110e8081 100644 --- a/rcfile_y.y +++ b/rcfile_y.y @@ -62,7 +62,7 @@ extern char * yytext; } %token DEFAULTS POLL SKIP VIA AKA LOCALDOMAINS PROTOCOL -%token AUTHENTICATE TIMEOUT KPOP KERBEROS4 +%token AUTHENTICATE TIMEOUT KPOP KERBEROS4 KERBEROS5 KERBEROS %token ENVELOPE QVIRTUAL USERNAME PASSWORD FOLDER SMTPHOST MDA SMTPADDRESS %token PRECONNECT POSTCONNECT LIMIT %token IS HERE THERE TO MAP WILDCARD @@ -129,7 +129,11 @@ serv_option : AKA alias_list | PROTOCOL PROTO {current.server.protocol = $2;} | PROTOCOL KPOP { current.server.protocol = P_POP3; +#ifdef KERBEROS_V5 + current.server.preauthenticate = A_KERBEROS_V5; +#else current.server.preauthenticate = A_KERBEROS_V4; +#endif /* KERBEROS_V5 */ #if INET6 current.server.service = KPOP_PORT; #else /* INET6 */ @@ -151,6 +155,14 @@ serv_option : AKA alias_list | INTERVAL NUMBER {current.server.interval = $2;} | AUTHENTICATE PASSWORD {current.server.preauthenticate = A_PASSWORD;} | AUTHENTICATE KERBEROS4 {current.server.preauthenticate = A_KERBEROS_V4;} + | AUTHENTICATE KERBEROS5 {current.server.preauthenticate = A_KERBEROS_V5;} + | AUTHENTICATE KERBEROS { +#ifdef KERBEROS_V5 + current.server.preauthenticate = A_KERBEROS_V5; +#else + current.server.preauthenticate = A_KERBEROS_V4; +#endif /* KERBEROS_V5 */ + } | TIMEOUT NUMBER {current.server.timeout = $2;} | ENVELOPE NUMBER STRING -- cgit v1.2.3