Welcome! Log In Create A New Profile

Advanced

Re: Mail Auth Module - Auth-Server local unix socket support

Maxim Dounin
April 06, 2010 03:34PM
Hello!

On Tue, Apr 06, 2010 at 10:13:10PM +0400, Igor Sysoev wrote:

> On Tue, Apr 06, 2010 at 03:23:07PM +0200, Simon Lécaille wrote:
>
> > Hi all,
> >
> > Because I need it, I add the unix socket support to Mail Auth Module.
> > Now if nginx mail auth module receives Auth-Server containing a sock
> > path e.g :
> >
> > HTTP/1.0 200 OK
> > Auth-Status: OK
> > Auth-Server: /tmp/cyrus.sock
> > Auth-Port: [SomethingOrNot]
> > Auth-User: user@domain.tld
> > Auth-Pass: password
> >
> > Nginx will be able to connect to the socket (e.g /tmp/cyrus.sock)
> >
> > I'm writting the tests set for prove.
> >
> > Patch in this mail (nginx-0.8.35)
> >
> > For people who wonder why :
> > Unix sockets allow me to restrict rights and permissions on cyrus.
> > By chrooting a lot of services, bad local users could contact cyrus from
> > localhost with tcp connections.
> > With unix sockets, the problem is now solved.
>
> Thank you for the patch, I will include it in the next release.

We've talked with Simon on irc and he promised to try to plug
ngx_parse_url() instead. Keeping in mind that this will change
syntax for unix sockets ("unix:/path" instead of "/path") - it's
probably good idea to wait for updated patch.

Or your "I will include it" as usual means "I'll rewrite it from
scratch and include rewritten version instead"? ;)

Maxim Dounin

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Mail Auth Module - Auth-Server local unix socket support Attachments

Simon Lécaille 2714 April 06, 2010 09:24AM

Re: Mail Auth Module - Auth-Server local unix socket support

Maxim Dounin 1070 April 06, 2010 10:22AM

Re: Mail Auth Module - Auth-Server local unix socket support

Igor Sysoev 1180 April 06, 2010 02:12PM

Re: Mail Auth Module - Auth-Server local unix socket support

Igor Sysoev 1108 April 06, 2010 02:14PM

Re: Mail Auth Module - Auth-Server local unix socket support

Maxim Dounin 1097 April 06, 2010 03:34PM

Re: Mail Auth Module - Auth-Server local unix socket support

Igor Sysoev 1581 April 06, 2010 03:38PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 230
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