Moodle Plugins directory: SAML Enrolments | Moodle.org

SAML Enrolments
Enrolment ::: enrol_saml
Maintained by
Sixto Martin Garcia
SAML Enrol plugin based on the simplesamlphp software. (require Authentication SAML and simpleSAMLphp SP)
Latest release:
29 sites
2 downloads
9 fans
Current versions available: 4
SAML Enrollments for Moodle.
SAML for Moodle is an open-source implementation for federated identity-based authentication infrastructure based on Security Assertion Markup Language (SAML) that allows the Moodle users log in through simpleSAMLphp.
Donations
Donations are welcome to support the development of the plugin.
Requirements
- SimpleSAML (http://rnd.feide.no/simplesamlphp). Tested with version > 1.7
- SAML Authentication for Moodle module
This plugin require a simplesamlphp instance configured as SP
(http://simplesamlphp.org/docs/trunk/simplesamlphp-sp)
Install Instruction
- Unpack this saml directory into the /enrol/ directory as you would for any Moodle enrol module (http://docs.moodle.org/en/Installing_contributed_modules_or_plugins).
- Login to Moodle as an administrator, and activate the module by navigating Site administration>Plugins>Enrolments>Manage enrol plugins->SAML enrolments
Configuration
- Add instance to new courses: True
- Enable saml enrolments: Enable True
- Default enrolment period: 0
- Default role. (Usually student)
Contributors
Sixto Martin Garcia (Lead maintainer)
Please login to view contributors details and/or to contact them
Thanks in advance
The way is to set with the 'inactive' flag in the IdP the shacUserStatus related with this course and set active the "supportcourses" and set to False the "ignoreinactivecourses" param in the auth saml plugin.
There is a risky process that you could implement in the enrol/saml/lib.php, function sync_user_enrolments
There you can override the funcions and disable always unenroll the user in the course if not appear in the schacUserStatus
Briefly, if a user have a value sended under a specific SAML attribute that correspond to a specific Moodle role, enroll it under all course of a specific category with this role...
I'm a beginner with moodle, so maybe I just need a few hints...
Thank's a lot !
Simon
I'm also looking for some help. Donations or contributions to the code are always welcome to keep this plugin alive.