aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_y.y
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-03-03 21:22:36 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-03-03 21:22:36 +0000
commit6421b138290aeecda414de1c753ace9d04681f7c (patch)
tree4facf1555bb3adc7028734a8f5c201b4c3c4a896 /rcfile_y.y
parente82d0241ff7d9a09e30776dc37b97d49c1ca531a (diff)
downloadfetchmail-6421b138290aeecda414de1c753ace9d04681f7c.tar.gz
fetchmail-6421b138290aeecda414de1c753ace9d04681f7c.tar.bz2
fetchmail-6421b138290aeecda414de1c753ace9d04681f7c.zip
Kerberos V support.
svn path=/trunk/; revision=1682
Diffstat (limited to 'rcfile_y.y')
-rw-r--r--rcfile_y.y14
1 files changed, 13 insertions, 1 deletions
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