Mail proxy module - http auth - BUG : bad Auth-Method returned
Maxim Dounin
mdounin at mdounin.ru
Fri Apr 24 12:27:53 MSD 2009
Hello!
On Fri, Apr 24, 2009 at 10:06:44AM +0200, Simon Lécaille wrote:
> When authenticate mechanism such as apop or cram-md5 are used, the
> Auth-Method header sent to backend mismatch the auth method used.
[...]
> 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.
Yes, thank you.
To Igor: one more correct aproach would be to move
NGX_MAIL_AUTH_LOGIN_USERNAME to the last, as it was originally in
my patch.
Maxim Dounin
>
> 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érance, Sécurité et Serveurs, Développements métier et spécifiques/
> 10 rue Mazagran, 54000 NANCY, France
> http://www.emisfr.com
> Tel/Fax.: +33.3 83 32 25 75
>
More information about the nginx
mailing list