mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-18 08:33:41 +00:00
ikiwiki: Enable HTTP auth using LDAP.
This commit is contained in:
parent
7d80c95048
commit
70e0c4f61a
@ -157,6 +157,7 @@ def setup():
|
||||
os.makedirs(SITE_PATH)
|
||||
|
||||
subprocess.check_call(['a2enmod', 'cgi'])
|
||||
subprocess.check_call(['a2enmod', 'authnz_ldap'])
|
||||
subprocess.check_call(['a2enconf', 'ikiwiki-plinth'])
|
||||
subprocess.check_call(['service', 'apache2', 'restart'])
|
||||
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user