A few weeks ago, I posted how Solution Grove implemented Moodle to ELGG Single Sign-On. That was only the first phase. The client also needed it to seamlessly auto-create users on ELGG using credentials from the user's Moodle account. We searched for a solution for this and found his ELGG-WebCT integration solution from Aperto Elearning Solutions. Even though the other component was WebCT, it was still interesting to us as the concept is similar - the user is automatically created on the ELGG side. Solution Grove emailed Aperto and their contact person was kind enough to point to us the Aperto download server, where the code can be downloaded, and added a few tips in the email as well.
From there, I went on to download and study the code. It did what we needed but I saw some limitations with the code as compared to how I envisioned our Moodle-ELGG implementation. Specifically, the ELGG-WebCT implementation strictly limits a matching user name between ELGG and the connecting component on the actual users table in ELGG. I found this as a limitation because ELGG separates users and user aliases into different tables and I did not want to change any ELGG functionality. In addition, making use of user aliases will give us the capability to allow different LMS to integrate with ELGG in the future.
In the end, I wrote my own code using the ELGG-WebCT integration as inspiration and the original e-portfolio block and then, patched ELGG LMS integration files mentioned in my previous post as my base code.
Based on the following assumptions:
Here are the things I did:
Feel free to use the code if it will help you in any way. It may not be an exact match to your needs but the code should be a good starting point. Just do the following to install on your server:
I tried to integrate Moodle 1.9 with Elgg 0.91. Even though user accounts were created in Elgg, they could not login.
They have to retrieve their password from Elgg.
It is safe to know the elgg password in case they logoffed from the elgg or they want to login directly.
Thus it will be good if users are redirected to the password retrieval page for elgg.
Thanks in advance.
Jong-Dae Park
by Jong-Dae Park on 03/22/08
You may request notification for Solution Grove Blog.