|
As described in this earlier hint I wrote a bridge for DokuWiki. With this bridge it's possible to use the Joomla users in DokuWiki. Unfortunately, this bridge didn't work anymore with Joomla 1.0.13. Now I took a closer look at the code and found a solution to get it working with Joomla 1.0.13
DokuWiki offers a possibility to write your own authentification methods. I wrote such a method for Joomla. The big problem was the new authentification system that was introduced with Joomla 1.0.13. I needed to find a way to convert the password correctly. Here I describe how I did it.
If you like to use the Joomla users ind Dokuwiki you have to change the following lines in conf/dokuwiki.php:
$conf['authtype'] = 'plain';
to
$conf['authtype'] = 'joomla';
Put the file joomla.class.php (first unzip it) in to the inc/auth/ directory. To get it working you have to change to more lines to your needs:
$conf['superuser'] = "admin";
In this line you have to add the short name of your administrator in Joomla.
include_once("../configuration.php");That's the path to the Joomla config file.
If you don't use the default prefix jos_ for the Joomla database you have to change the prefix in the two sql queries.
At the moment you have to log in into DokuWiki seperately. The next step I plan is to read out the Joomla cookie / session variables that if you logged into Joomla, your also logged in in Dokuwiki.
{moscomment}
|