MySQL authentication module?


#1

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


#2

El Fri, Jan 16, 2009 at 03:35:43PM -0500, Warwick Poole va escriure:

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.