Skip to content

Instantly share code, notes, and snippets.

@cameri
Created October 27, 2014 23:12
Show Gist options
  • Save cameri/d716852e154496c270ca to your computer and use it in GitHub Desktop.
Save cameri/d716852e154496c270ca to your computer and use it in GitHub Desktop.
server {
server_name test.example.com;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log debug;
root /srv/test.example.com;
auth_ldap_url "ldap://10.8.0.238/dc=example,dc=com?samaccountname?sub?(objectClass=user)";
auth_ldap_binddn "[email protected]";
auth_ldap_binddn_passwd "mySpecialPassword";
location /ldapprotectedspace {
auth_ldap "Restricted Space";
auth_ldap_require valid_user;
auth_ldap_satisfy any;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment