DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:authdrupal8

authdrupal8 Plugin

Compatible with DokuWiki

  • 2024-02-06 "Kaos" unknown
  • 2023-04-04 "Jack Jackrum" yes
  • 2022-07-31 "Igor" unknown
  • 2020-07-29 "Hogfather" unknown

plugin Authenticate using Drupal 8 to Drupal 10 with changed password hash

Last updated on
2024-01-25
Provides
Auth
Repository
Source

Installation

:!: Note: Wrong use of some settings can make your wiki unreachable. Be sure to read the full documentation before installing/activating the plugin.

:!: External requirements: This plugin requires the following additional components that must be installed separately:

Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

Usage

When using the plugin Dokuwiki will get the user and login information from a Drupal database.

Users can login using their Drupal login credentials. Registering and modifying users is not possible (and most likely will not be) as this functionality is provided by Drupal.
Dokuwiki will read user groups and memberships from the Drupal 8 or 9 database as well. Make sure you read the configuration instructions further below on this page.

Configuration and Settings

After installation and activation the plugin can be configured using the dokuwiki configuration page. Make sure you stick to the suggested order unless you know exactly what you do.

1. Plugin configuration

You will find an authdrupal8-section on your config page. Edit the following values:

  • database: name of the drupal database on your mysql-server
  • username: mysql-username with at least reading access to the Drupal database
  • password
  • prefix: Prefix of your Drupal tables, e.g. mypre_, make sure it ends with an underscore
  • host: this will most likely be localhost

2. ACL settings

Dokuwiki will use the Drupal roles as usergroups. To get the correct permissions for your users you have to edit the ACL settings.

When granting permissions the user group names are replaced with Drupal role names. If you want to grant access to all Drupal users that are members of the role wiki use the user group name @wiki.

3. Authentication

Go to the authentication section of the configuration page.

  • Add a Drupal role or a valid Drupal username to the list of super-users @administrator . I highly recommend you to be part of this group as it will be necessary to access the administration section afterwards. :!: I highly recommend keeping “@admin” too, so that you can easily go back to “authplain”.
  • You can add valid Drupal roles / usernames to the manager list.

About Drupal roles

I highly recommend that you create new Drupal roles for use in your Dokuwiki permissions. Doing this you will be able to grant or deny wiki permissions without affecting your drupal permission. Not neccessarily should every Drupal admin have superuser rights in Dokuwiki. Create and assign this roles using Drupal administration tools.

Development

The authdrupal8 plugin widely bases on the authdrupal7 plugin by Matthias Jung.

Some changes were neccessary as Drupal 8 to 10 uses some algorithms for hashing passwords that were not realizable using the authdrupal7 plugin.

Bug Tracking

plugin/authdrupal8.txt · Last modified: 2024-01-25 17:52 by jjancel

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