|
LAMS v1.0.2 Integration Setup Step-by-Step Guide
This page last changed on Nov 30, 2005 by Ernie Ghiglione.
IntroIf you want to integrate LAMS and an LMS without all the detailed explaination, then scroll down to the "Quick visual walkthru LAMS Integration with other LMSs" section.If you want to know what you are doing and how the integration works, read all the sections in this guide. Who should read this guide?
General and System RequirementsSoftware:
Hardware: You can install LAMS and the LMS in the same server or on separate servers. It really depends on your setup, the size of the clases you have, the concurrency of users, size of the server, etc. If you need general advice on this, ask in the Tech forum in the LAMS Community.
How does LAMS work with these LMSs?The integration has been designed in a way that you only need to maintain your existing LMS. Once you integrate LAMS with your favorite LMS, LAMS will become a pseudo slave of your LMS and little to no maintanance is required on the LAMS side. General overview![]() The LAMS-LMS integration is quite straight forward. In all cases we have developed a small connecting module in the LMS that acts as a bridge between the LMS and LAMS. This LMS LAMS Module will have to be installed in the LMS if you want to integrate it with LAMS. This LMS integration modules are maily responsible for the following:
Getting LAMS and the LMS to communicateAs you can see in the graph above, there's communication bothways between LAMS and the LMS. So both have to be configured to "connect" to each other. On the LMS Side, the LMS LAMS Module needs the following:
That's it! On the LAMS side you need to:
Quick visual walkthru LAMS Integration with other LMSsHere are the steps you need to take to get LAMS and your LMS (in this case Moodle) to be integrated. Just to illustrate this example, we are going to use the following info:Our LAMS server is: lams.mq.edu.au Our Moodle server is: moodle.mq.edu.au lams.mq.edu.au has installed LAMS in port 80. moodle.mq.edu.au has installed Moodle 1.5.x and has the Moodle LAMS moduled installed. OK, now let's get it on with the integration: In the LAMS side1. login in LAMS as a sysadmin (the user that you created at installation time)
![]() 2. Click on the "Admin" button and then select the "Sys Admin" option ![]() 3. Add a new top level organisation ![]() 4. Add the name and description for the organisation you are creating ![]() 5. Now we need to get a bit under the hood and insert some values into the LAMS MySQL database manually. See the bold letters in the following ernieg@lamsmoodle:~$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 6708 to server version: 4.1.10a-Debian_2-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> use lams
Database changed
mysql> select sid, name from u_organisation;
+------+----------------------------------------------------+
| sid | name |
+------+----------------------------------------------------+
| 1 | All Organisations |
| 2 | Demo Org |
| 3 | DemoClass |
| 1030 | Macquarie University |
+------+----------------------------------------------------+
Now, remember the sid for the organization we just created "Macquarie University" as we will use shortly. Then, let's insert the integration record into the LAMS external integration table: mysql> insert into ext_server_org_map
(serverid, serverkey, servername, serverdesc, prefix, orgid) values
('lamsserver01', 'secretkey2005', 'Macquarie Uni server',
'Server using Moodle installed in this and that location. Contact Random Striker at 9850-9070',
'mq', '1030');
Additionally, we need to set up the callback userinfo URL. This callback userinfo URL is used by LAMS to retrieve personal information about the user from the LMS. We add this callback URL as follows: mysql> update ext_server_org_map
set userinfo_url = 'http://moodle.mq.edu.au/mod/lams/userinfo.php?un=%username%&ts=%timestamp%&hs=%hash%'
where orgid = '1030';
Note that the userinfo_url in this example refers to the Moodle server (moodle.mq.edu.au). Change this according to your server. For other LMS', refer to the table below, or the documentation of the LAMS module for your LMS.
On the LMS side (in this case Moodle, but the same config info applies to all)1. Go to your configuration menu and click on the LAMS settings ![]() 2. Enter the LAMS server URL, server_id and server_key ![]() Make sure you keep your sever_key private as that is the key used for authentication That's it. You are done. Now you can go to your course and add a LAMS sequence as show in this pictures: ![]() ![]() See the integration animations for further details. Problems and Comments?Post them in the Tech Forum in the LAMS Community |
| Document generated by Confluence on Nov 30, 2005 15:43 |