Hi Guys,

Recently we have begun to use the clustering features in our production
network.  A staff member has a password containing a { character, which
is accepted fine directly.  When forwarding the connection between
servers the server re-sends the LOGIN command without quotes.

eg
recv at imap1: 
* LOGIN qmailuser "test{"

send to imap2:
* LOGIN qmailuser test{

The remote server complains returning:
* NO Error in IMAP command received by server.

The attached patch is a very simple fix for this.

We are using the 20050401a patch with Courier-IMAP 3.0.8.

-- 
Trevor Nichols
Senior Network & Systems Administrator
Information & Communication Technology
Service to Youth Council Inc

mail:   [EMAIL PROTECTED]     mobile: +61 438 877 363
phone: +61 8 8367 0755          fax:    +61 8 8361 9988
diff -u qmail-1.03.orig/auth_imap.c qmail-1.03/auth_imap.c
--- qmail-1.03.orig/auth_imap.c	2005-06-21 14:45:51.000000000 +0930
+++ qmail-1.03/auth_imap.c	2005-06-21 14:45:11.000000000 +0930
@@ -344,9 +344,9 @@
 	substdio_puts(&ss, tag);
 	substdio_puts(&ss, " login "); 
 	substdio_puts(&ss, login); 
-	substdio_puts(&ss, " ");
+	substdio_puts(&ss, " \"");
 	substdio_puts(&ss, passwd); 
-	substdio_puts(&ss, "\r\n");
+	substdio_puts(&ss, "\"\r\n");
 	substdio_flush(&ss);
 }
 

Reply via email to