Welcome! Log In Create A New Profile

Advanced

MySQL authentication module?

Posted by Warwick Poole 
Warwick Poole
MySQL authentication module?
January 16, 2009 10:00PM
Hi

Apologies if this has been asked before, the list archive search seems to be
down right now.

Does anyone know of any development which has been done on an nginx
equivalent of the mod_auth_mysql Apache module?
Essentially a module which provides HTTP Authentication using a MySQL
database backend.

Can't seem to find any existing projects. Am I missing any?

Thanks.
WP
Sergio Talens-Oliag
Re: MySQL authentication module?
January 19, 2009 11:20AM
El Fri, Jan 16, 2009 at 03:35:43PM -0500, Warwick Poole va escriure:
> Hi
>
> Apologies if this has been asked before, the list archive search seems to be
> down right now.
>
> Does anyone know of any development which has been done on an nginx
> equivalent of the mod_auth_mysql Apache module?
> Essentially a module which provides HTTP Authentication using a MySQL
> database backend.
>
> Can't seem to find any existing projects. Am I missing any?

If you use a Linux system I did a module to support PAM for HTTP
Authentication on nginx, it is available on:

http://web.iti.upv.es/~sto/nginx

It works with the stable nginx version and needs small changes for the 0.7.x
series (I plan to upgrade the code once 0.7.x is declared stable).

With that module you can use any authentication system supported by PAM, in
your case I would use pam-mysql (http://pam-mysql.sourceforge.net/) to
authenticate against a MySQL database.

Hope it helps,

Sergio.

--
Sergio Talens-Oliag <[email protected]> http://www.iti.upv.es/
Key fingerprint = FF77 A16B 9D09 FC7B 6656 CFAD 261D E19A 578A 36F2
Attachments:
open | download - signature.asc (206 bytes)
Sorry, only registered users may post in this forum.

Click here to login