changeset 2382:34d4c7a7b485 HEAD

Added NTLM kludge. Patch by Andrey Panin
author Timo Sirainen <tss@iki.fi>
date Fri, 30 Jul 2004 04:47:45 +0300
parents 6531fd0f779f
children 959136e08a70
files src/pop3-login/client-authenticate.c
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/pop3-login/client-authenticate.c	Fri Jul 30 04:43:21 2004 +0300
+++ b/src/pop3-login/client-authenticate.c	Fri Jul 30 04:47:45 2004 +0300
@@ -279,6 +279,17 @@
 	string_t *buf;
 	size_t argslen;
 
+	if (*args == '\0' &&
+	    auth_client_find_mech(auth_client, "NTLM") != NULL) {
+		/* This is needed to allow MS Outlook to use NTLM
+		   authentication. Sometimes this kludge is called
+		   "old-style SASL discovery". */
+		client_send_line(client, "+OK");
+ 		client_send_line(client, "NTLM");
+ 		client_send_line(client, ".");
+ 		return TRUE;
+ 	}
+
 	/* <mechanism name> <initial response> */
 	p = strchr(args, ' ');
 	if (p == NULL) {