It's better when it's simple

User Tools

Site Tools


LemonLDAP SSO with DokuWiki

:!: This is an old authentication backend and works with dokuwiki up to Andora Belle 2012-10-13

For newer dokuwiki releases an auth plugin is required.

You have to update this backend to an auth plugin authlemonldap Plugin (as successor of lemonldap)

DokuWiki can be used with an LemonLDAP SSO solution.

Note: This plugin hasn't be really tested in production for the moment, feel free to change it your own way.


Simply unpack 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.


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 provides an LemonLDAP authenticated DokuWiki:

For information, this can be an Apache2 lemon/doku config file:

PerlRequire /var/lib/lemonldap-ng/handler/

<VirtualHost *>
    PerlOptions +GlobalRequest
    PerlHeaderParserHandler MyHandler

    <Files *.pl>
        SetHandler perl-script
        PerlResponseHandler ModPerl::Registry
        PerlSendHeader  On

    # DocumentRoot
    DocumentRoot /var/www/

    <Directory /var/www/>
        Order deny,allow
        #Deny from all
        Allow from all
        Options -Indexes +FollowSymLinks +MultiViews

    <Location /logout >
            PerlHeaderParserHandler MyHandler->logout

        <IfModule mod_dir.c>
            DirectoryIndex index.php index.html

    # Logs
    LogLevel warn
    ErrorLog /var/log/apache2/
    CustomLog /var/log/apache2/ combined

auth/lemonldap.txt · Last modified: 2021-08-18 00:59 by Klap-in

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki