[toaster] AUTH Plain problem
I have patch netqmail-1.05 with netqmail-1.05-tls-smtpauth-20040207.patch and have had a problem with both types of AUTH PLAIN. I am always getting '501 malformed auth input' with either of the following :- 1) AUTH PLAIN with base64 on the same line 2) AUTH PLAIN on its own line followed by base64 on a following line I have narrowed this down to the version of base64.c that is included in the patch. In auth_plain() the following happens :- if (r = b64decode(authin.s,authin.len,&resp) ... This is fine, resp.s is a pointer to the decoded input from either type of AUTH PLAIN command, BUT resp.len is 0. The base64.c shipped in the patch does not update the len part of the string struct. I have reverted to the base64.c that shipped originally with Mrs Brisby's patch and all works fine. As a point of interest I had a look to see why AUTH LOGIN works fine and the code for AUTH LOGIN does not use resp.len for anything where as AUTH PLAIN uses resp.len to see if there is enough information to break it down into id, user, pass. I think I am right, I am just suprised that it has not been seen before. If there is a problem with the base64.c in Mrs Brisby's patch let me know and I will have a look at fixing the one included in Bill Shupp's patch.
Re: [toaster] AUTH Plain problem
On Jul 5, 2004, at 8:57 AM, Drew Wells wrote: I have patch netqmail-1.05 with netqmail-1.05-tls-smtpauth-20040207.patch and have had a problem with both types of AUTH PLAIN. I am always getting '501 malformed auth input' with either of the following :- I just built a toaster on a dev box to test some SMTP AUTH client code I'm working on and I used Bill's current toaster document. All versions of AUTH are working fine. The date stamp on qmail-toaster-0.6-1.patch from the toaster doc is Feb 13 15:31. So, does this mean that it's more up to date than the 20040207 patch you used? I guess we'll have to wait for Bill's response. -- Tom Collins - [EMAIL PROTECTED] QmailAdmin: http://qmailadmin.sf.net/ Vpopmail: http://vpopmail.sf.net/ Info on the Sniffter hand-held Network Tester: http://sniffter.com/
Re: [toaster] AUTH Plain problem
Tom Collins wrote: On Jul 5, 2004, at 8:57 AM, Drew Wells wrote: I have patch netqmail-1.05 with netqmail-1.05-tls-smtpauth-20040207.patch and have had a problem with both types of AUTH PLAIN. I am always getting '501 malformed auth input' with either of the following :- I just built a toaster on a dev box to test some SMTP AUTH client code I'm working on and I used Bill's current toaster document. All versions of AUTH are working fine. The date stamp on qmail-toaster-0.6-1.patch from the toaster doc is Feb 13 15:31. So, does this mean that it's more up to date than the 20040207 patch you used? I guess we'll have to wait for Bill's response. My toaster 0.6-1 patch uses: smtp-auth patch v. 0.4.2 by Erwin Hoffmann http://www.fehcom.de/qmail/smtpauth.html TLS patch by Frederik Vermeulen <[EMAIL PROTECTED]>. Here's the original patch with documentation at the top: http://inoa.net/qmail-tls/netqmail-1.04-tls-20040120.patch So the TLS patch is actually slightly older that that used with the qmail/tls only patch. However, both smtp-auth and tls patches have been updated, and I'll be using those patches with the next toaster release, as well as the standalone smtp-auth/tls composite patch. Incidently, the versions are always included that the top of the patch. Regards, Bill Shupp
Re: [toaster] AUTH Plain problem
Bill Shupp wrote: Tom Collins wrote: On Jul 5, 2004, at 8:57 AM, Drew Wells wrote: I have patch netqmail-1.05 with netqmail-1.05-tls-smtpauth-20040207.patch and have had a problem with both types of AUTH PLAIN. I am always getting '501 malformed auth input' with either of the following :- I just built a toaster on a dev box to test some SMTP AUTH client code I'm working on and I used Bill's current toaster document. All versions of AUTH are working fine. The date stamp on qmail-toaster-0.6-1.patch from the toaster doc is Feb 13 15:31. So, does this mean that it's more up to date than the 20040207 patch you used? I guess we'll have to wait for Bill's response. My toaster 0.6-1 patch uses: smtp-auth patch v. 0.4.2 by Erwin Hoffmann http://www.fehcom.de/qmail/smtpauth.html TLS patch by Frederik Vermeulen <[EMAIL PROTECTED]>. Here's the original patch with documentation at the top: http://inoa.net/qmail-tls/netqmail-1.04-tls-20040120.patch So the TLS patch is actually slightly older that that used with the qmail/tls only patch. However, both smtp-auth and tls patches have been updated, and I'll be using those patches with the next toaster release, as well as the standalone smtp-auth/tls composite patch. Incidently, the versions are always included that the top of the patch. Regards, Bill Shupp I have put up a new composite smtp-auth/tls patch, using the latest versions: http://shupp.org/smtp-auth-tls/ Regards, Bill Shupp