Created
April 12, 2018 19:01
-
-
Save blackknight36/0994ac254ee8877682b7cf7f071b0a0a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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