2016-10-15 19:57:04 +02:00
<!DOCTYPE html>
< html lang = "en" dir = "ltr" >
< head >
< meta charset = "utf-8" / >
< title > documentation:2.0:applications:dokuwiki< / title >
< meta name = "generator" content = "DokuWiki" / >
< meta name = "robots" content = "index,follow" / >
< meta name = "keywords" content = "documentation,2.0,applications,dokuwiki" / >
< link rel = "search" type = "application/opensearchdescription+xml" href = "../lib/exe/opensearch.html" title = "LemonLDAP::NG" / >
< link rel = "start" href = "dokuwiki.html" / >
< link rel = "contents" href = "dokuwiki.html" title = "Sitemap" / >
< link rel = "stylesheet" type = "text/css" href = "../lib/exe/css.php.t.bootstrap3.css" / >
2017-02-07 17:35:26 +01:00
<!-- //if:usedebianlibs
< link rel = "stylesheet" type = "text/css" href = "/javascript/bootstrap/css/bootstrap.min.css" / >
//elsif:useexternallibs
< link rel = "stylesheet" type = "text/css" href = "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" > < / script >
//elsif:cssminified
< link rel = "stylesheet" type = "text/css" href = "/static/bwr/bootstrap/dist/css/bootstrap.min.css" / >
//else -->
< link rel = "stylesheet" type = "text/css" href = "/static/bwr/bootstrap/dist/css/bootstrap.css" / >
<!-- //endif -->
2016-10-15 19:57:04 +02:00
< script type = "text/javascript" > / * < ! [ C D A T A [ * / v a r N S = ' d o c u m e n t a t i o n : 2 . 0 : a p p l i c a t i o n s ' ; v a r J S I N F O = { " i d " : " d o c u m e n t a t i o n : 2 . 0 : a p p l i c a t i o n s : d o k u w i k i " , " n a m e s p a c e " : " d o c u m e n t a t i o n : 2 . 0 : a p p l i c a t i o n s " } ;
/*!]]>*/< / script >
< script type = "text/javascript" charset = "utf-8" src = "../lib/exe/js.php.t.bootstrap3.js" > < / script >
2017-02-07 17:35:26 +01:00
<!-- //if:usedebianlibs
< script type = "text/javascript" src = "/javascript/jquery/jquery.min.js" > < / script >
//elsif:useexternallibs
< script type = "text/javascript" src = "http://code.jquery.com/jquery-2.2.0.min.js" > < / script >
//elsif:jsminified
< script type = "text/javascript" src = "/static/bwr/jquery/dist/jquery.min.js" > < / script >
//else -->
< script type = "text/javascript" src = "/static/bwr/jquery/dist/jquery.js" > < / script >
<!-- //endif -->
<!-- //if:usedebianlibs
< script type = "text/javascript" src = "/javascript/jquery-ui/jquery-ui.min.js" > < / script >
//elsif:useexternallibs
< script type = "text/javascript" src = "http://code.jquery.com/ui/1.10.4/jquery-ui.min.js" > < / script >
//elsif:jsminified
2018-03-08 13:29:31 +01:00
< script type = "text/javascript" src = "/static/bwr/jquery-ui/jquery-ui.min.js" > < / script >
2017-02-07 17:35:26 +01:00
//else -->
2018-03-08 13:29:31 +01:00
< script type = "text/javascript" src = "/static/bwr/jquery-ui/jquery-ui.js" > < / script >
2017-02-07 17:35:26 +01:00
<!-- //endif -->
2016-10-15 19:57:04 +02:00
< / head >
< body >
< div class = "dokuwiki export container" >
<!-- TOC START -->
< div id = "dw__toc" >
< h3 class = "toggle" > Table of Contents< / h3 >
< div >
< ul class = "toc" >
< li class = "level1" > < div class = "li" > < a href = "#presentation" > Presentation< / a > < / div > < / li >
2018-01-26 10:35:45 +01:00
< li class = "level1" > < div class = "li" > < a href = "#http_headers" > HTTP headers< / a > < / div >
2016-10-15 19:57:04 +02:00
< ul class = "toc" >
2018-01-26 10:35:45 +01:00
< li class = "level2" > < div class = "li" > < a href = "#plugin_installation" > Plugin installation< / a > < / div > < / li >
< li class = "level2" > < div class = "li" > < a href = "#dokuwiki_configuration" > Dokuwiki configuration< / a > < / div > < / li >
2016-10-15 19:57:04 +02:00
< li class = "level2" > < div class = "li" > < a href = "#dokuwiki_virtual_host" > Dokuwiki virtual host< / a > < / div > < / li >
< li class = "level2" > < div class = "li" > < a href = "#dokuwiki_virtual_host_in_manager" > Dokuwiki virtual host in Manager< / a > < / div > < / li >
< / ul > < / li >
< / ul >
< / div >
< / div >
<!-- TOC END -->
< h1 class = "sectionedit1" id = "dokuwiki" > Dokuwiki< / h1 >
< div class = "level1" >
< p >
< a href = "dokuwiki_logo.png_documentation_2.0_applications_dokuwiki.html" class = "media" title = "applications:dokuwiki_logo.png" > < img src = "dokuwiki_logo.png" class = "mediacenter" alt = "" / > < / a >
< / p >
< / div >
<!-- EDIT1 SECTION "Dokuwiki" [1 - 64] -->
< h2 class = "sectionedit2" id = "presentation" > Presentation< / h2 >
< div class = "level2" >
< p >
< a href = "http://www.dokuwiki.org/" class = "urlextern" title = "http://www.dokuwiki.org/" rel = "nofollow" > DokuWiki< / a > is a standards compliant, simple to use Wiki, mainly aimed at creating documentation of any kind. It is targeted at developer teams, workgroups and small companies. It has a simple but powerful syntax which makes sure the data files remain readable outside the Wiki and eases the creation of structured texts. All data is stored in plain text files – no database is required.
< / p >
< div class = "notetip" > LemonLDAP::NG wiki uses Dokuwiki!
< / div >
< / div >
2018-01-26 10:35:45 +01:00
<!-- EDIT2 SECTION "Presentation" [65 - 559] -->
< h2 class = "sectionedit3" id = "http_headers" > HTTP headers< / h2 >
2016-10-15 19:57:04 +02:00
< div class = "level2" >
< p >
2018-01-26 10:35:45 +01:00
You need to install a Dokuwiki plugin, available on < a href = "https://www.dokuwiki.org/plugins" class = "urlextern" title = "https://www.dokuwiki.org/plugins" rel = "nofollow" > Dokuwiki plugins registry< / a > : < a href = "https://www.dokuwiki.org/plugin:authlemonldap" class = "urlextern" title = "https://www.dokuwiki.org/plugin:authlemonldap" rel = "nofollow" > https://www.dokuwiki.org/plugin:authlemonldap< / a >
2016-10-15 19:57:04 +02:00
< / p >
< / div >
2018-01-26 10:35:45 +01:00
<!-- EDIT3 SECTION "HTTP headers" [560 - 748] -->
< h3 class = "sectionedit4" id = "plugin_installation" > Plugin installation< / h3 >
< div class = "level3" >
< p >
Install the plugin using the < a href = "https://www.dokuwiki.org/plugin:plugin" class = "urlextern" title = "https://www.dokuwiki.org/plugin:plugin" rel = "nofollow" > Plugin Manager< / a > .
< / p >
2016-10-15 19:57:04 +02:00
< / div >
2018-01-26 10:35:45 +01:00
<!-- EDIT4 SECTION "Plugin installation" [749 - 868] -->
< h3 class = "sectionedit5" id = "dokuwiki_configuration" > Dokuwiki configuration< / h3 >
2016-10-15 19:57:04 +02:00
< div class = "level3" >
< p >
2018-01-26 10:35:45 +01:00
As administrator, go in Dokuwiki parameters and set:
< / p >
< ul >
< li class = "level1" > < div class = "li" > Authentication backend: authlemonldap< / div >
< / li >
< li class = "level1" > < div class = "li" > Manager: set which users and/or groups will be admin< / div >
< / li >
< / ul >
< p >
< a href = "screenshot_dokuwiki_configuration.png_documentation_2.0_applications_dokuwiki.html" class = "media" title = "applications:screenshot_dokuwiki_configuration.png" > < img src = "screenshot_dokuwiki_configuration.png" class = "mediacenter" alt = "" / > < / a >
2016-10-15 19:57:04 +02:00
< / p >
< / div >
2018-01-26 10:35:45 +01:00
<!-- EDIT5 SECTION "Dokuwiki configuration" [869 - 1114] -->
2016-10-15 19:57:04 +02:00
< h3 class = "sectionedit6" id = "dokuwiki_virtual_host" > Dokuwiki virtual host< / h3 >
< div class = "level3" >
< p >
Configure Dokuwiki virtual host like other < a href = "../configvhost.html" class = "wikilink1" title = "documentation:2.0:configvhost" > protected virtual host< / a > .
< / p >
2018-01-26 10:35:45 +01:00
< ul >
2016-10-15 19:57:04 +02:00
< li class = "level1" > < div class = "li" > For Apache:< / div >
< / li >
< / ul >
< pre class = "code file apache" > < < span class = "kw3" > VirtualHost< / span > *:< span class = "nu0" > 80< / span > >
< span class = "kw1" > ServerName< / span > dokuwiki.example.com
PerlHeaderParserHandler Lemonldap::NG::Handler
...
< /< span class = "kw3" > VirtualHost< / span > > < / pre >
< ul >
< li class = "level1" > < div class = "li" > For Nginx:< / div >
< / li >
< / ul >
< pre class = "code file nginx" > server {
listen 80;
server_name dokuwiki.example.com;
root /path/to/application;
# Internal authentication request
location = /lmauth {
internal;
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/llng-fastcgi-server/llng-fastcgi.sock;
# Drop post datas
fastcgi_pass_request_body off;
fastcgi_param CONTENT_LENGTH " " ;
# Keep original hostname
fastcgi_param HOST $http_host;
# Keep original request (LLNG server will received /llauth)
fastcgi_param X_ORIGINAL_URI $request_uri;
}
# Client requests
location / {
auth_request /lmauth;
auth_request_set $lmremote_user $upstream_http_lm_remote_user;
auth_request_set $lmlocation $upstream_http_location;
error_page 401 $lmlocation;
try_files $uri $uri/ =404;
...
include /etc/lemonldap-ng/nginx-lua-headers.conf;
}
location / {
try_files $uri $uri/ =404;
}
}< / pre >
< / div >
2018-01-26 10:35:45 +01:00
<!-- EDIT6 SECTION "Dokuwiki virtual host" [1115 - 2376] -->
2016-10-15 19:57:04 +02:00
< h3 class = "sectionedit7" id = "dokuwiki_virtual_host_in_manager" > Dokuwiki virtual host in Manager< / h3 >
< div class = "level3" >
< p >
Go to the Manager and < a href = "../configvhost.html#lemonldapng_configuration" class = "wikilink1" title = "documentation:2.0:configvhost" > create a new virtual host< / a > for Dokuwiki.
< / p >
< p >
2018-01-26 10:35:45 +01:00
Configure the < a href = "../writingrulesand_headers.html#rules" class = "wikilink1" title = "documentation:2.0:writingrulesand_headers" > access rules< / a > .
2016-10-15 19:57:04 +02:00
< / p >
< p >
2018-01-26 10:35:45 +01:00
Configure the < a href = "../writingrulesand_headers.html#headers" class = "wikilink1" title = "documentation:2.0:writingrulesand_headers" > headers< / a > :
2016-10-15 19:57:04 +02:00
< / p >
2018-01-26 10:35:45 +01:00
< ul >
< li class = "level1" > < div class = "li" > Auth-User $uid< / div >
< / li >
< li class = "level1" > < div class = "li" > Auth-Cn: $cn< / div >
< / li >
< li class = "level1" > < div class = "li" > Auth-Mail: $mail< / div >
< / li >
< li class = "level1" > < div class = "li" > Auth-Groups: encode_base64($groups,' ' )< / div >
< / li >
< / ul >
< div class = "noteimportant" > To allow execution of encode_base64() method, you must deactivate the < a href = "../safejail.html" class = "wikilink1" title = "documentation:2.0:safejail" > Safe jail< / a > .
< / div >
2016-10-15 19:57:04 +02:00
< / div >
2018-01-26 10:35:45 +01:00
<!-- EDIT7 SECTION "Dokuwiki virtual host in Manager" [2377 - ] --> < / div >
2016-10-15 19:57:04 +02:00
< / body >
< / html >