## Enrolment: User role assignment from LDAP

enrol_ldapuserrel
Maintained by Maxime Pelletier
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.
19 sites
9 fans
Moodle 2.4, 2.5, 2.6

If you need to assign Parent or Mentor role, this plugin will help you. It reads data from LDAP and then assign the specified role based on the information in LDAP.

In LDAP, you need to have an entry for the Parent/Mentor which contain an attribute (which can have multiple values) with the list of children/mentee.

For more details, go to http://docs.moodle.org/23/en/LDAP_User_role_assignment

### Contributors

• Sun, 4 Nov 2012, 12:58 AM
Hi,
- code repository
- issue tracker
- documentation
• Tue, 6 Nov 2012, 2:27 AM
For issue tracking, I think we can use Moodle Tracker and the CONTRIB related to this plugin: http://tracker.moodle.org/browse/CONTRIB-3938
As for the documentation, not sure where is the best place. I'll have a look at that.
• Tue, 6 Nov 2012, 8:12 PM
Hi Maxime, here's a page for the documentation: http://docs.moodle.org/23/en/LDAP_User_role_assignment (I just made a start on it.)
• Mon, 26 Nov 2012, 7:54 PM
Hi Maxime, I tried to install this on my Moodle 2.1.2 system and it wanted me to upgrade

Specific message regarding build versions was: 2011070102.06, you need 2012061700

Any way of getting a version to work bakc-level without having to upgrade my environment ? Many thanks !
• Tue, 27 Nov 2012, 12:15 AM
Hi Goeff,

The reason why you get that message is because I don't know if the plugin is compatible with Moodle 2.1, so it requires Moodle 2.2.

If you can test the plugin in development, modify the file moodle/enrol/ldapuserrel/version.php and change the line
$plugin->requires = 2012061700; for$plugin->requires = 2011070102.06;

This will tell Moodle that the plugin is compatible with you version of Moodle.

I'm confident that it'll work well because there are no major differences between 2.1 and 2.2

Please let me know if it works well.
• Sun, 9 Dec 2012, 1:59 AM
Hi Maxime,
I was translating the ldapuserrel plugin and I found what seems to be a typo in the English language strings:
2.3 [localobjectuserfield_desc,enrol_ldapuserrel]
"Name of the field in Moodle user table that is used to identified the mentee"

"identified " should be "identify" (I think, but I am not a native English speaker).