User:d00p > Integrating DekiWiki and Drupal

Integrating DekiWiki and Drupal

Table of contents
No headers

This howto describes how to configure DekiWiki to authenticate againg Drupal user database. It also configures Drupal to login a user into DekiWiki when that user logins to Drupal

- Login to DekiWiki as the DekiWiki admin 

- Configure a new authentication service from the Services Management page on DekiWiki.

Description DrupalAuth

SID http://services.mindtouch.com/deki/d...2007/05/drupal

Config

db-server         localhost

db-user            drupaluser

db-port            3306

db-catalog       drupal

db-password    xxxxxx

- If your Drupal installation use database table prefixes it's necessary to create views on the database to make it work.

CREATE VIEW drupal.users AS SELECT * FROM drupal.drupal_users;
CREATE VIEW drupal.users_roles AS SELECT * FROM drupal.drupal_users_roles;
CREATE VIEW drupal.role AS SELECT * FROM drupal.drupal_role;

- Uncompress the DekiWiki SSO module into the Drupal modules folder

- Login to Drupal as the Drupal admin

- Activate the DekiWiki SSO module at Home -> Administer -> Site building -> Modules

- Configure the DekiWiki SSO module at Home -> Administer -> Site configuration -> DekiWiki SSO module settings

DekiWiki server full DNS name      wiki.server.com
DekiWiki cookie domain                .server.com

The DNS name is used by Drupal to contact DekiWiki. As usually DekiWiki and Drupal use different DNS names the cookies should be set at domain level, not host level. Be carefully with the initial dot, as it's necessary.

- Finally configure DekiWiki login/logout links to use Drupal login/logout pages

$wgTemplateOverrides['loginurl'] = 'http://www.server.com/user';
$wgTemplateOverrides['logouturl'] = 'http://www.server.com/logout'; 
Tag page

Files 1

FileSizeDateAttached by 
 dekiwikiSSO.zip
DekiWiki SSO Module
1524 bytes00:31, 26 Feb 2008d00pActions
Viewing 1 of 1 comments: view all
Very nice. Can you achieve the same thing by using LDAP? Is it possible to embed Deki inside Drupal so it appears as a content type? Thank you.
Posted 22:53, 20 Apr 2008
Viewing 1 of 1 comments: view all
You must login to post a comment.
Powered by MindTouch Deki v.8.08.2