This Authentication module integrates the Moodle Learning Management System with MoinMoin. It allows the user to login on Moodle and use their Moodle LMS account for their identity on MoinMoin.

The Moodle LMS and MoinMoin must be running on the same domainname (so that the cookie can be shared between them). The domain name must be exactly the same (we found a cookie from www.hostname.com couldn't be shared with hostname.com).

See also the other plugins in the AuthMarket.

Installation

Put moinoodle.py into the wiki directory, where it can be found by the configuration file

Add moodle_session_dir to your config file to point to the Moodle LMS moodledata/sessions directory, e.g.

        moodle_session_dir = "/home/bob/moodledata/sessions"

Specify in the wikiconfig.py configuration file, e.g.

    from moinoodle import moinoodle
    auth = [moinoodle]
    user_autocreate = True

Login in on Moodle and you will have that username on MoinMoin.

It may seem a bit weird, but you can't log off on MoinMoin, you must do that on Moodle too. Best thing to do is set show_login = False in your config file.

History

MoinMoin: DavidMoore/Moinoodle (last edited 2007-10-29 19:10:41 by localhost)