Skip to content

Instantly share code, notes, and snippets.

View yaniv4345's full-sized avatar

Yaniv Cohen yaniv4345

View GitHub Profile
@stefb69
stefb69 / LDAPAuth.pm
Last active February 28, 2017 15:57
Simple and per location customizable LDAP Authentication for nginx, using embedded perl and ngx_http_auth_request_module
#!/usr/bin/perl
package LDAPAuth;
use nginx;
use Authen::Simple::LDAP;
use MIME::Base64;
sub handler {
my $r = shift;