LemonLDAP SSO with Dokuwiki
This plugin was provided by Erwan Legall (LINAGORA). See the original article.Installation
Simply unpack the LemonLDAP::NG Dokuwiki plugin (see download section) and copy the lemonldap.class.php and lemonldapuserdatabackend.class.php in your inc/auth/ directory. Note: The Dokuwiki must be provided by the http server wheris the lemonLDAP handler.Configuration
Very simple too, the only thing you have to change is the conf/local.php to add this line:
$conf[authtype] = lemonldap;
That's it!
LemonLDAP / dokuwiki / Apache2 VHost example
There is an example of an apache2 vhost which prvide an LemonLDAP authentified dokuwiki:
For information, this can be an Apache2 lemon/doku config file:
PerlRequire /var/lib/lemonldap-ng/handler/MyHandler.pm
<VirtualHost *> ServerName dokuwiki.sso-lemonldap.com PerlOptions +GlobalRequest PerlHeaderParserHandler MyHandler
<Files *.pl> SetHandler perl-script PerlResponseHandler ModPerl::Registry PerlSendHeader On </Files>
# DocumentRoot DocumentRoot /var/www/dokuwiki.sso-lemonldap.com
<Directory /var/www/dokuwiki.sso-lemonldap.com> Order deny,allow #Deny from all Allow from all Options -Indexes +FollowSymLinks +MultiViews </Directory>
<IfModule mod_dir.c> DirectoryIndex index.pl index.php index.html </IfModule>
# Logs LogLevel warn ErrorLog /var/log/apache2/dokuwikisso-lemonldap.com-error.log CustomLog /var/log/apache2/dokuwikisso-lemonldap.com-access.log combined
</VirtualHost>