• Contact Us
  • Home
  • Reference

Using OpenLDAP with Dokuwiki

Learn how to integrate OpenLDAP with Dokuwiki

Written by Marty Heyman

Updated at January 27th, 2026

  • Quick Start
  • Installation
    Best Practices Configuration Troubleshooting Design Performance Platform
  • Maintenance
    Releases Upgrade
  • Reference
+ More

DokuWiki is a popular, open-source, file-based wiki software written in PHP, designed primarily for creating documentation, knowledge bases, and manuals without requiring a database. It is known for being lightweight, easy to maintain, and highly versatile, featuring a simple syntax, built-in access controls, and a vibrant community-supported plugin ecosystem. 

LDAP configuration is in /dokuwiki/conf/local.protected.php:

$conf['useacl']         = 1;           //enable ACL
$conf['authtype']       = 'authldap';  //enable this Auth plugin
$conf['superuser'] = 'admin';
$conf['plugin']['authldap']['server']      = '      ldap://ldap_server:389'; #IP of your ldap
$conf['plugin']['authldap']['usertree']    = 'ou=people,dc=example,dc=com';
$conf['plugin']['authldap']['grouptree']   = 'ou=groups, dc=example, dc=com';
$conf['plugin']['authldap']['userfilter']  = '(&(uid=%{user})(objectClass=person))';
$conf['plugin']['authldap']['groupfilter'] = '(&(member=%{dn})(objectClass=groupOfUniqueNames))';
$conf['plugin']['authldap']['attributes']  = array('cn', 'displayname', 'mail', 'givenname', 'objectclass', 'sn', 'uid', 'memberof');
$conf['plugin']['authldap']['version']    = 3;
$conf['plugin']['authldap']['binddn']     = 'cn=admin,ou=people,dc=example,dc=com';
$conf['plugin']['authldap']['bindpw']     = 'ENTER_YOUR_OpenLDAP_PASSWORD';

DokuWiki by default, ships with an LDAP Authentication Plugin called authLDAP that allows authentication against an LDAP directory. All you need to do is to activate the plugin. This can be done on the DokuWiki Extensions Manager.

Once the LDAP settings are defined, proceed to define the default authentication method. Navigate to Table of Contents > DokuWiki > Authentication. On the Authentication backend, select authldap and save the changes.

More information can be found here:

https://www.dokuwiki.org/plugin:authldap

You can find additional examples on LDAP Auth plugin configurations here. 

 

 

Copyright © 2020-2024 Symas Corporation. All rights reserved.
directory integration

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Chaining Overlay with Keep Alive Function
  • cn=monitor Reference
  • Common ldap Command Parameters
  • Common slapd Command Parameters
  • Convert Single-Master to Multi-Master Replication
  • Symas Blog RSS Feed
  • Symas on Facebook
  • Symas on Twitter
  • Symas Blog
  • Symas on LinkedIn
  • Symas YouTube Channel

Copyright © 2025, Symas Corporation. All rights reserved. Privacy Statement (updated July 31, 2023)

Phone:

Main Office: +1.650.963.7601
Fax: +1.650.390.6284

Email:

Sales: sales@symas.com
Support: support@symas.com

Office Hours:

8:00 AM - 5:00 PM ET

Office Location:

Symas Corporation
PO Box 391
Grand Junction, CO 81507 USA

Expand