Skip to content

Installation Moodle Side

cannod edited this page Oct 28, 2012 · 16 revisions

The following instructions describe how to setup Moodle so that it can connect to Drupal.

In this example Drupal is installed at http://localhost and moodle is installed at http://localhost/moodle.

Requirements

Versions are listed for reference only as these were the versions when this documentation was created.

  • Moodle 2.3.2+
  • moodle-drupalservices auth plugin.
  • Drupal services setup and working. Refer to Installation Drupal side.

Install moodle-drupalservices auth plugin.

Download and extract moodle-drupalservices into the auth/ directory. If necessary, change the extracted directory to drupalservices so that the directory structure looks something like;

auth/drupalservices/:
auth_drupalservices_sync_users.php
auth.php
config.html
lang
REST-API.php
README.md

In Moodle goto Site administration -> Plugins -> Authentication -> Manage authentication

You should see Drupal Services listed as an available plugin. Click on the Setings for Drupal Services.

Configure Drupal Services plugin.

In the plugin settings form, we need to tel Moodle how to connect to Drupal.

  • Drupal Hostname
  • Endpoint
  • Remote user
  • Remote user password

For this example, the following values can be used.

  • Drupal Hostname: http://localhost
  • Endpoint: /drupalservices
  • Remote user: remote
  • Remote user password: whatever you set as the remote user password.

Lock the following fields.

  • First name
  • Surname
  • Email address
  • City/town
  • Country
  • ID number IMPORTANT!!!! Lock the ID Number field! This field is being used to store the drupal uid for each user.

Save changes.

Enable the Drupal services plugin.

Clone this wiki locally