Skip to content

Instantly share code, notes, and snippets.

@zukka77
Created August 1, 2019 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zukka77/e2331d1086a7175b6d8e73ebc7ca957e to your computer and use it in GitHub Desktop.
Save zukka77/e2331d1086a7175b6d8e73ebc7ca957e to your computer and use it in GitHub Desktop.
<Directory /var/www/html/secure>
AuthBasicProvider ldap
AuthLDAPURL "ldap://server1 server2/dc=example,dc=com?sAMAccountName?sub" NONE
#AuthLDAPInitialBindAsUser On
#AuthLDAPInitialBindPattern (.+) $1@example.com
AuthLDAPBindDN user@example.com
AuthLdapBindPassword password
AuthLDAPGroupAttribute member
AuthLDAPGroupAttributeIsDN on
AuthType Basic
AuthName "Authorization required"
require ldap-group cn=group,cn=Users,dc=example,dc=com
#require valid-user
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment