Nginx randomly crashes

Maxim Dounin mdounin at
Fri Feb 1 11:34:41 UTC 2013


On Fri, Feb 01, 2013 at 12:11:58PM +0100, Patrick Lists wrote:

> On 02/01/2013 12:07 PM, rg00 wrote:
> >I really need ldap authentication, is there an alternative to that module?
> A quick google gave:

This one blocks as well.

There is no non-blocking API in PAM, hence correct nginx module to 
use PAM for authentication is something impossible to write.  And 
LDAP client libraries out there are blocking too, so writing LDAP 
authentication module isn't something simple.


Yep, using X-Accel-Redirect is a good way to handle any 
needed authentication/authorization.

Alternatively, one may use auth request module:

I wrote it once tired reading questions about PAM/LDAP/whatever 
authentication modules and various blocking solutions people write 
and try to use.  Compared to X-Accel-Redirect it is simplier for 
general use.

Maxim Dounin

More information about the nginx mailing list