From 22074f56d27e9981819ba525e93001ca6027b1c2 Mon Sep 17 00:00:00 2001 From: jakob42 Date: Mon, 12 Feb 2024 09:21:22 +0100 Subject: [PATCH] mentioned dokuwiki authchained plugin --- example_configs/dokuwiki.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/example_configs/dokuwiki.md b/example_configs/dokuwiki.md index ca3b0ac..ea82084 100644 --- a/example_configs/dokuwiki.md +++ b/example_configs/dokuwiki.md @@ -9,7 +9,7 @@ $conf['authtype'] = 'authldap'; //enable this Auth plugin $conf['superuser'] = 'admin'; $conf['plugin']['authldap']['server'] = 'ldap://lldap_server:3890'; #IP of your lldap $conf['plugin']['authldap']['usertree'] = 'ou=people,dc=example,dc=com'; -$conf['plugin']['authldap']['grouptree'] = 'ou=groups, 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'); @@ -24,3 +24,11 @@ All you need to do is to activate the plugin. This can be done on the DokuWiki E 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. + +## Internal (or other authentication) fallback +If you dont want to use LDAP authentication exclusively, you can install the [authchained plugin](https://www.dokuwiki.org/plugin:authchained). It tries multiple auth backends when a user logs in. + +``` +$conf['authtype'] = 'authchained'; +$conf['plugin']['authchained']['authtypes'] = 'authldap:authplain'; +``` \ No newline at end of file