Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Doku-Vanilla Integration
I have alluded to this in another post, but I wanted to make a formal request for the Doku-Vanilla integration, where Doku pulls from Vanilla's user table.
The whole things seems really simple, but I'm not good enough with the language to be confident about it. The instructions for doing this, and a few examples, are to be found at http://wiki.splitbrain.org/wiki:auth:mysql
Someone who knew Vanilla's inner workings could probably get this done in no time.
0
This discussion has been closed.
Comments
$conf['auth']['mysql']['server'] = 'dbhost';
$conf['auth']['mysql']['user'] = 'dbuser;
$conf['auth']['mysql']['password'] = 'dbpass';
$conf['auth']['mysql']['database'] = 'dbname';
$conf['auth']['mysql']['forwardClearPass'] = 0;
$conf['auth']['mysql']['TablesToLock']= array("LUM_User","LUM_Role");
$conf['auth']['mysql']['checkPass'] = "SELECT password as pass
FROM LUM_User
WHERE name='%{user}'";
$conf['auth']['mysql']['getUserInfo'] = "SELECT password as pass, name, email AS mail
FROM LUM_User
WHERE name='%{user}'";
$conf['auth']['mysql']['getGroups'] = "SELECT LUM_Role.Name as `group`
FROM LUM_Role join LUM_User
on LUM_User.RoleID = LUM_Role.RoleID
where LUM_User.name like '%{user}'";
$conf['auth']['mysql']['getUsers'] = "SELECT DISTINCT name AS user
FROM LUM_User AS u";
$conf['auth']['mysql']['FilterName'] = "u.name LIKE '%{name}'";
$conf['auth']['mysql']['FilterLogin'] = "u.name LIKE '%{name}'";
$conf['auth']['mysql']['FilterEmail'] = "u.email LIKE '%{email}'";
$conf['auth']['mysql']['FilterGroup'] = "g.name LIKE '%{group}'";
$conf['auth']['mysql']['SortOrder'] = "ORDER BY u.name";
$conf['auth']['mysql']['getUserID'] = "SELECT userid AS id
FROM LUM_User
WHERE name='%{user}'";
Then setup the acl.auth.php with the users "Group" info from Vanilla.
With this configuration, users create their login via Vanilla, and Doku uses the LUM_User table to authenticate, and provide security clearance.
The only issue I have encountered with this is it doesn't like Group names with spaces.. and ALL user account creation needs to be through Vanilla
in the acl.auth.php
* @Admin 16
@(vanilla groupname) 16 is full access