Integrating DekiWiki and Drupal

    Table of contents
    No headers

    This howto describes how to configure DekiWiki to authenticate against Drupal user database. It also configures Drupal 5 to login a user into DekiWiki when that user logs in 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 uses 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 (attached below) into the Drupal 5 sites/all/modules folder.

    - Login to Drupal 5 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 careful 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

    FileVersionSizeModified 
    Viewing 4 of 4 comments: view all
    Hi, does much need to be changed in the module to make it work in Drupal 6 (or even Drupal 7)?
    Posted 20:18, 21 Jun 2009
    @d00p hi
    Posted 18:58, 1 Oct 2009
    I did amend d00p's module to work with Drupal 6. I am trying to communicate with d00p to determine whether these modules (both versions) can be posted at drupal.org, as well as here (amended D6 version), since the original code was not mine.
    Posted 08:32, 12 Jul 2010
    I'll follow the Drupal project's guidelines and post my own D6 port to the drupal.org .module repository.

    According to http://drupal.org/licensing/faq#q7, which is an interpretation not at all unique to the Drupal project, d00p's code is derived from the GPLv2-licensed Drupal and therefore is itself GPLv2-licensed (because it has been distributed). As such, my port also will be GPLv2 and both versions will be eligible for hosting in the Drupal project's CVS and website.

    I'll post here again soon when I've been granted CVS access for the contribution to drupal.org, and I'll provide a link to the module's page. edited 14:21, 22 Jul 2010
    Posted 14:20, 22 Jul 2010
    Viewing 4 of 4 comments: view all
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by