[Exim] Maybe a Bug in AUTH LOGIN: patch

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Liu Xin
Datum:  
To: exim-users
Betreff: [Exim] Maybe a Bug in AUTH LOGIN: patch
--
Hi,

I've made a patch ( attached ) for exim-4.12 in case it might be helpful.

Best
Regards,

LIU Xin

****************

Hi,

I'm using exim-4.12 on both Linux and FreeBSD.

It seems that as clients MTAs based on cyrus-sasl library send:

AUTH LOGIN =

instead of:

    AUTH LOGIN


( At least the sendmail in RedHat 8.0 behaves so. )

The "=" is treated by exim as $1 that is of zero length, but it should
be ignored so that the user name will be $1 and the password will be $2.

Since the LOGIN mechanism is not officially documented, I wonder should
this problem be of exim's or of cyrus-sasl's? And will the exim developers
be willing to make exim compatible with such "AUTH LOGIN ="?

And when I enabled only LOGIN mechanism, my mozilla-1.2.1 just ignored
it...and it use PLAIN when I enabled both LOGIN and PLAIN... :-(
--
--- plaintext.c.old    Mon Feb 17 23:36:30 2003
+++ plaintext.c    Mon Feb 17 23:37:11 2003
@@ -92,8 +92,11 @@
   {
   if (Ustrcmp(data, "=") == 0)
     {
+/* The following 2 lines are disabled to support "AUTH LOGIN =" */
+#if 0
     expand_nstring[++expand_nmax] = US"";
     expand_nstring[expand_nmax] = 0;
+#endif
     }
   else
     {
--