ldap-chpw-cgi/.htaccess

24 lines
685 B
ApacheConf
Raw Normal View History

2021-04-11 05:24:52 +02:00
# required if using apache2: a2enmod authnz_ldap
AuthType Basic
AuthName "Login"
AuthBasicProvider ldap
#AuthLDAPBindAuthoritative off
AuthLDAPBindDN UID=bind,OU=Users,DC=ldap,DC=freiesnetz,DC=at
AuthLDAPBindPassword ldapbind
AuthLDAPURL ldap://localhost/OU=Users,DC=ldap,DC=freiesnetz,DC=at?uid
#LDAPReferrals off
Require valid-user
# disabled because of client error: ERR_TOO_MANY_REDIRECTS
#RewriteEngine on
#RewriteCond %{HTTPS} !=on
#RewriteCond %{ENV:HTTPS} !=on
#RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L,NE]
2015-10-19 18:29:41 +02:00
Options +ExecCGI
AddHandler cgi-script .py
DirectoryIndex index.py
# Don't allow access to .git folder for security reasons
RedirectMatch 404 /\.git