ldap-chpw-cgi/.htaccess

24 lines
692 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
2021-04-12 03:08:00 +02:00
AuthLDAPBindPassword ldapbindpassword
2021-04-11 05:24:52 +02:00
AuthLDAPURL ldap://localhost/OU=Users,DC=ldap,DC=freiesnetz,DC=at?uid
2021-04-12 03:08:00 +02:00
LDAPReferrals off
2021-04-11 05:24:52 +02:00
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