mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
ikiwiki: Enable HTTP auth using LDAP.
This commit is contained in:
1 parent
7d80c95048
commit
70e0c4f61a
4 files changed
+16
-2
No files matched your search
@@ -1,6 +1,17 @@
|
||||
Alias /ikiwiki /var/www/ikiwiki
|
||||
Alias /ikiwiki-auth /var/www/ikiwiki
|
||||
AddHandler cgi-script .cgi
|
||||
|
||||
<Directory /var/www/ikiwiki>
|
||||
<Location /ikiwiki>
|
||||
Options +ExecCGI
|
||||
</Directory>
|
||||
</Location>
|
||||
|
||||
<Location /ikiwiki-auth>
|
||||
Options +ExecCGI
|
||||
|
||||
AuthType basic
|
||||
AuthName "login required"
|
||||
AuthBasicProvider ldap
|
||||
AuthLDAPURL "ldap:///ou=users,dc=thisbox?uid"
|
||||
Require valid-user
|
||||
</Location>
|
||||
@@ -22,6 +22,7 @@ IkiWiki::Setup::Automator->import(
|
||||
dumpsetup => "/var/lib/ikiwiki/$wikiname_short.setup",
|
||||
url => "/ikiwiki/$wikiname_short",
|
||||
cgiurl => "/ikiwiki/$wikiname_short/ikiwiki.cgi",
|
||||
cgiauthurl => "/ikiwiki-auth/$wikiname_short/ikiwiki.cgi",
|
||||
cgi_wrapper => "/var/www/ikiwiki/$wikiname_short/ikiwiki.cgi",
|
||||
add_plugins => [qw{goodstuff websetup comments calendar sidebar trail httpauth}],
|
||||
rss => 1,
|
||||
|
||||
@@ -22,6 +22,7 @@ IkiWiki::Setup::Automator->import(
|
||||
dumpsetup => "/var/lib/ikiwiki/$wikiname_short.setup",
|
||||
url => "/ikiwiki/$wikiname_short",
|
||||
cgiurl => "/ikiwiki/$wikiname_short/ikiwiki.cgi",
|
||||
cgiauthurl => "/ikiwiki-auth/$wikiname_short/ikiwiki.cgi",
|
||||
cgi_wrapper => "/var/www/ikiwiki/$wikiname_short/ikiwiki.cgi",
|
||||
add_plugins => [qw{goodstuff websetup httpauth}],
|
||||
rss => 1,
|
||||
|
||||
Reference in new issue
Block a user