User role assignment from LDAP

Enrolment ::: enrol_ldapuserrel
Maintained by Maxime Pelletier, Alistair Spark
This plugin allows you to configure automatic synchronisation of relationships between users from a LDAP server. It is mainly used to assign Parent/Mentor rôle.

User role assignment from LDAP 0.1

Moodle 2.2, 2.3
Released: Thursday, 25 October 2012, 9:36 PM
This plugin allows you to configure automatic relationships between users from LDAP

THIS PLUGIN IS IN BETA STATUS! BE CAREFULL WITH PRODUCTION ENVIRONMENT!

Users familiar with enrol/ldap should have no problems configuring this.

Plugin has been tested on 2.3.

This plugin is the LDAP version of a plugin that was first developed by Penny Leach for Moodle 1.9
but I modified it to work with Moodle 2.3

This is one of my first experience with Moodle plugin development, so your comments are more than
welcome. Useless to say that you use this piece of code at your own risk smile

HOW TO INSTALL
==============
Prerequisis
a. LDAP server with mentor entries with an attribute containing a list of mentee id
b. PHP library to connect to LDAP
c. mentee and mentor accounts already in Moodle

1. Download all the files in the directory {MOODLE_DIR}/enrol/ldapuserrel (using git, GitHub website, or anything else)
2. Go to http://{MOODLE_URL}/admin to complete the installation
3. Fill all parameters using Moodle plugin administration interface (http://{MOODLE_URL}/admin/settings.php?section=enrolsettingsldapuserrel)
4. Setup a cron job to execute {MOODLE_DIR}/enrol/ldapuserrel/cli/sync.php (add -v for more output, and redirecte output to log file)

Feel free to send me any comments/suggestions

Maxime Pelletier

Version information

Version build number
2012090600
Version release name
0.1
Maturity
Beta
MD5 Sum
2564a0420adeff061a53a534b0f16b88
Supported software
Moodle 2.2, Moodle 2.3
  • Latest release for Moodle 2.2
  • Latest release for Moodle 2.3

Version control information

Version control system (VCS)
GIT
VCS repository URL

Default installation instructions for plugins of the type Enrolment

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder (eg "myenrol") in the "enrol" subdirectory.
  4. Visit http://yoursite.com/admin to finish the installation