Skip to content

Instantly share code, notes, and snippets.

@blackknight36
Created April 12, 2018 19:01
Show Gist options
  • Save blackknight36/0994ac254ee8877682b7cf7f071b0a0a to your computer and use it in GitHub Desktop.
Save blackknight36/0994ac254ee8877682b7cf7f071b0a0a to your computer and use it in GitHub Desktop.
<IfModule ldap_module>
<Location />
# Using this to bind
AuthLDAPBindDN "<%= @ldap_bind_dn %>"
AuthLDAPBindPassword "<%= @ldap_bind_pass %>"
# search user
AuthLDAPURL "ldap://dc01.example.com/dc=example,dc=com?sAMAccountName?sub?(objectClass=*)"
AuthType Basic
AuthName "USE YOUR WINDOWS ACCOUNT"
AuthBasicProvider ldap
# Important, otherwise "(9)Bad file descriptor: Could not open password file: (null)"
AuthUserFile /dev/null
Require valid-user
</Location>
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment