add basic-auth via ldap
This commit is contained in:
parent
3f2b4554d7
commit
e123051d74
20
.htaccess
20
.htaccess
|
@ -1,7 +1,19 @@
|
||||||
RewriteEngine on
|
# required if using apache2: a2enmod authnz_ldap
|
||||||
RewriteCond %{HTTPS} !=on
|
AuthType Basic
|
||||||
RewriteCond %{ENV:HTTPS} !=on
|
AuthName "Login"
|
||||||
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L,NE]
|
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]
|
||||||
|
|
||||||
Options +ExecCGI
|
Options +ExecCGI
|
||||||
AddHandler cgi-script .py
|
AddHandler cgi-script .py
|
||||||
|
|
Loading…
Reference in a new issue