aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-09-25 17:58:35 +0200
committerMatthias Andree <matthias.andree@gmx.de>2010-09-25 18:01:36 +0200
commit6b3a90ba9eff0d27e104d03f4762c59c6a657032 (patch)
tree965bf27950b9d6fcd688b1608feafcf20309feb0 /contrib
parent60416c3179c2dc8ccf8768234195bdfed54d772d (diff)
downloadfetchmail-6b3a90ba9eff0d27e104d03f4762c59c6a657032.tar.gz
fetchmail-6b3a90ba9eff0d27e104d03f4762c59c6a657032.tar.bz2
fetchmail-6b3a90ba9eff0d27e104d03f4762c59c6a657032.zip
contrib: Add a patch to assist debugging GSSAPI.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/patch-for-debugging30
1 files changed, 30 insertions, 0 deletions
diff --git a/contrib/patch-for-debugging b/contrib/patch-for-debugging
new file mode 100644
index 00000000..8a2e3f56
--- /dev/null
+++ b/contrib/patch-for-debugging
@@ -0,0 +1,30 @@
+This patch removes the "skip GSSAPI if no credentials" feature, and can
+be used to assist debugging.
+
+diff --git a/imap.c b/imap.c
+index d641586..575573f 100644
+--- a/imap.c
++++ b/imap.c
+@@ -566,7 +566,7 @@ static int imap_getauth(int sock, struct query *ctl, char *greeting)
+ }
+
+ #ifdef GSSAPI
+- if (((ctl->server.authenticate == A_ANY && check_gss_creds("imap", ctl->server.truename) == PS_SUCCESS)
++ if (((ctl->server.authenticate == A_ANY)
+ || ctl->server.authenticate == A_GSSAPI)
+ && strstr(capabilities, "AUTH=GSSAPI"))
+ {
+diff --git a/pop3.c b/pop3.c
+index f5e727c..bbefaf0 100644
+--- a/pop3.c
++++ b/pop3.c
+@@ -565,8 +565,7 @@ static int pop3_getauth(int sock, struct query *ctl, char *greeting)
+ #if defined(GSSAPI)
+ if (has_gssapi &&
+ (ctl->server.authenticate == A_GSSAPI ||
+- (ctl->server.authenticate == A_ANY
+- && check_gss_creds("pop", ctl->server.truename) == PS_SUCCESS)))
++ (ctl->server.authenticate == A_ANY)))
+ {
+ ok = do_gssauth(sock,"AUTH","pop",ctl->server.truename,ctl->remotename);
+ if (ok == PS_SUCCESS || ctl->server.authenticate != A_ANY)