aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-02-19 08:11:35 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-02-19 08:11:35 +0000
commitf077de8e8d6eb2f0c3ccadf6a38611fb14a1f89f (patch)
treefa65efc291271342d112903af2aa9a7dc5e8fed8
parentc406e3816603d635f5b08f9d76da1bdcf28ed1c3 (diff)
downloadfetchmail-f077de8e8d6eb2f0c3ccadf6a38611fb14a1f89f.tar.gz
fetchmail-f077de8e8d6eb2f0c3ccadf6a38611fb14a1f89f.tar.bz2
fetchmail-f077de8e8d6eb2f0c3ccadf6a38611fb14a1f89f.zip
Enable user to suppress Kerberos and GSSAPI.
svn path=/trunk/; revision=3117
-rw-r--r--pop3.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/pop3.c b/pop3.c
index 8815d11b..2b6d77dc 100644
--- a/pop3.c
+++ b/pop3.c
@@ -250,12 +250,17 @@ int pop3_getauth(int sock, struct query *ctl, char *greeting)
}
#if defined(GSSAPI)
- if (has_kerberos)
+ if ((ctl->server.preauthenticate == A_ANY
+ || ctl->server.preauthenticate==A_GSSAPI)
+ && has_gssapi)
return(do_gssauth(sock, "AUTH",
ctl->server.truename, ctl->remotename));
#endif /* defined(GSSAPI) */
#if defined(KERBEROS_V4) || defined(KERBEROS_V5)
- if (has_kerberos)
+ if ((ctl->server.preauthenticate == A_ANY
+ || ctl->server.preauthenticate==A_KERBEROS_V4
+ || ctl->server.preauthenticate==A_KERBEROS_V5)
+ && has_kerberos)
return(do_rfc1731(sock, "AUTH", ctl->server.truename));
#endif /* defined(KERBEROS_V4) || defined(KERBEROS_V5) */
if (has_cram)