Mail Auth Module - Local Unix Socket Auth-Server support

Stéphane BERTHELOT sberthelot at emisfr.com
Mon Aug 16 21:32:13 MSD 2010


  Hello everyone,

Following what Simon Lecaille (my coworker) did in April and advices 
from Maxim I prepared the following patch to use parse_url function to 
allow Local Unix Socket in Auth-Server on Mail Auth Module.
I didn't see a patch by Igor inbetween so I wrote it...

The patch is currently missing "port" (especially on INET/INET6) usage 
(since it's not needed in Unix Socket I first tried this way). It will 
add it back very soon but I need some advice on it. Should I allow empty 
port and concatenate it only when not empty ? Should we allow port to be 
passed on Auth-Server line ? (ie. localhost:9100)
Port should certainly be ignored when using Unix Socket to avoid messing 
with the real path ...

Any comment on code/indent/style is welcome so I can improve this patch 
and ask for inclusion later.

Best regards,

Stephane BERTHELOT.

-- 
(Logo EmisFr)
*Stéphane BERTHELOT*
EmisFR
/Infogérance totale ou partagée, sur site ou distante, Développements 
sur mesure web 2.0/
10 rue Mazagran, 54000 NANCY, France
http://www.emisfr.com
Tel/Fax.: +33.3 83 32 25 75
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx-devel/attachments/20100816/d7d957f8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logo_signature.jpg
Type: image/jpeg
Size: 2428 bytes
Desc: not available
URL: <http://nginx.org/pipermail/nginx-devel/attachments/20100816/d7d957f8/attachment.jpg>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nginx-mail-auth-url.patch
URL: <http://nginx.org/pipermail/nginx-devel/attachments/20100816/d7d957f8/attachment.ksh>


More information about the nginx-devel mailing list