[dovecot-cvs] dovecot/src/pop3-login client-authenticate.c, 1.23, 1.24

cras at dovecot.org cras at dovecot.org
Fri Jul 30 04:47:47 EEST 2004


Update of /home/cvs/dovecot/src/pop3-login
In directory talvi:/tmp/cvs-serv10816

Modified Files:
	client-authenticate.c 
Log Message:
Added NTLM kludge. Patch by Andrey Panin



Index: client-authenticate.c
===================================================================
RCS file: /home/cvs/dovecot/src/pop3-login/client-authenticate.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- client-authenticate.c	22 Jul 2004 13:33:34 -0000	1.23
+++ client-authenticate.c	30 Jul 2004 01:47:45 -0000	1.24
@@ -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) {



More information about the dovecot-cvs mailing list