Welcome! Log In Create A New Profile

Advanced

Mail proxy module - http auth - BUG : bad Auth-Method returned

Simon L
April 24, 2009 04:06AM
When authenticate mechanism such as apop or cram-md5 are used, the
Auth-Method header sent to backend mismatch the auth method used.

e.g With cram-md5 mechanism
GET / HTTP/1.0
Host: localhost
Auth-Method: none
Auth-User: login
Auth-Pass: 3874a80406c560adb1c11853c266a44e
Auth-Salt: <2086279695.1240477831@localhost>
Auth-Protocol: imap
Auth-Login-Attempt: 1
Client-IP: 127.0.0.1

e.g With apop mechanism
GET / HTTP/1.0
Host: localhost
Auth-Method: cram-md5
Auth-User: login
Auth-Pass: password
Auth-Protocol: pop3
Auth-Login-Attempt: 1
Client-IP: 127.0.0.1

Actually the array ngx_mail_auth_http_method[] contained less values
than it should.
So the index pointed to the wrong string when the auth_method attribute
is used is several structures.
One occurrence of "plain" was missing.

Here comes the patch :


Index: src/mail/ngx_mail_auth_http_module.c
===================================================================
--- src/mail/ngx_mail_auth_http_module.c
+++ src/mail/ngx_mail_auth_http_module.c
@@ -138,4 +138,5 @@

static ngx_str_t ngx_mail_auth_http_method[] = {
+ ngx_string("plain"),
ngx_string("plain"),
ngx_string("plain"),

--
(Logo EmisFr)
*Simon LECAILLE*
EmisFR
/Infog
Subject Author Posted

Mail proxy module - http auth - BUG : bad Auth-Method returned

Simon L April 24, 2009 04:06AM

Re: Mail proxy module - http auth - BUG : bad Auth-Method returned

Maxim Dounin April 24, 2009 04:27AM

Re: Mail proxy module - http auth - BUG : bad Auth-Method returned

Igor Sysoev April 24, 2009 06:08AM

Re: Mail proxy module - http auth - BUG : bad Auth-Method returned

Maxim Dounin April 24, 2009 06:48AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 293
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready