MyBB Community Forums

Full Version: Use myBB 1.8 to authentificate on dokuwiki
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Software Versions :

Dokuwiki : 2017-02-19b "Frusterick Manners"
MyBB : 1.8.12

So we are using authpdo.

edit conf/local.php

Change $conf['authtype'] to :

$conf['authtype'] = 'authpdo';

and $conf['superuser'] to 


$conf['superuser'] = '@Administrators';

then add :

$conf['disableactions'] = 'register';
$conf['plugin']['authpdo']['dsn'] = 'mysql:host=localhost;dbname=mybb;charset=utf8';
$conf['plugin']['authpdo']['user'] = '<DB_USER>';
$conf['plugin']['authpdo']['pass'] = '<DB_USER_PASSWORD>';
$conf['plugin']['authpdo']['select-user'] = 'SELECT salt, username AS name, username AS user, email AS mail FROM mybb_users WHERE username=:user LIMIT 0,1';
$conf['plugin']['authpdo']['check-pass'] = 'SELECT uid, salt FROM mybb_users WHERE username=:user AND MD5(CONCAT(MD5(salt), MD5(:clear))) = password';
$conf['plugin']['authpdo']['select-user-groups'] = 'SELECT mybb_usergroups.title AS "group" FROM mybb_users INNER JOIN mybb_usergroups ON mybb_usergroups.gid=mybb_users.usergroup where mybb_users.username=:user';


of course replace <DB_USER> and <DB_USER_PASSWORD> by the right entries.

And now you can enjoy login in dokuwiki with your mybb'suser and password.

PS: to be wiki administrator you must have the Administrators group as main group in myBB.