# Dokuwiki

## Presentation

DokuWiki 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.

LemonLDAP::NG wiki uses Dokuwiki!

You will need to install a Dokuwiki plugin, available on download page. The plugin will check the `REMOTE_USER` environment variable to get the connected user.

## Installation

Download the plugin and copy the files in dokuwiki `inc/auth/` directory:

    cp lemonldap.class.php inc/auth/
    cp lemonldapuserdatabackend.class.php inc/auth/

## Configuration

### Dokuwiki local configuration

Edit Dokuwiki local configuration (`conf/local.php`) and set `lemonldap` as authentication type:

    $conf[authtype] = lemonldap;

### Dokuwiki virtual host in Apache

Configure Dokuwiki virtual host like other protected virtual host.

    <VirtualHost *:80>
           ServerName dokuwiki.example.com

           PerlHeaderParserHandler My::Package

           ...

    </VirtualHost>

If you are protecting Dokuwiki with LL::NG as reverse proxy, convert header into REMOTE_USER environment variable.

### Dokuwiki virtual host in Manager

Go to the Manager and create a new virtual host for Dokuwiki.

Just configure the access rules.

If using LL::NG as reverse proxy, configure the `Auth-User` header, else no headers are needed.