Forum Problems Installing LAMS: Re: about the lams-moodle integration


 
Search: 

2: Re: about the lams-moodle integration
In response to 1 01/29/08 04:22 AM
[ Reply | Forward ]
Hi Sonia,

Are all the settings the same as you posted before?

LAMS MODULE SETTING IN MOODLE
server_url: http://140.122.73.105:8080/lams
server_id: moodle
server_key: moodle
request_source: moodle
===================================================

SETTING IN LAMS:

Under : Edit integrated server
Id: moodle
Key: moodle
Name: moodle
Description: moodle
Prefix: mdl
Disabled:
Organisation: ntnu
User Information URL: http://140.122.73.118/mod/lamstwo/userinfo.php?ts=%timestamp%&un=%root%&hs=%hash%
Timeout URL: http://dummy


Thanks,

Ernie

Posted by Ernie Ghiglione

3: Re: Re: about the lams-moodle integration
In response to 2 01/29/08 08:43 PM
[ Reply | Forward ]
no, I've changed the setting in lams --------->user information URL to :
http://140.122.73.52/mod/lamstwo/userinfo.php?ts=%timestamp%&un=%root%&hs=%hash%
but I still can create a lams course on 140.122.73.118, and it has the same problem as on 140.122.73.52, is that normal?
thank you.

Posted by sonia wang

4: Re: Re: Re: about the lams-moodle integration
In response to 3 02/11/08 09:06 PM
[ Reply | Forward ]
Your user info URL seems incorrect, shouldn't it look like this?

http://140.122.73.52/mod/lamstwo/userinfo.php?ts=%timestamp%&un=%username%&hs=%hash%

If you have more than one Moodle server linked to a single LAMS server, it's best to create a new integrated server entry (complete with unique set of server id and server key) for each Moodle, even if both are not active at the same time. Otherwise user accounts may get mixed up.

Posted by Jun-Dir Liew

5: Re: Re: Re: Re: about the lams-moodle integration
In response to 4 02/11/08 11:13 PM
[ Reply | Forward ]
I've tried creating a new integrated server entry, but the problem still exists. I can't open the lesson or author a lesson with account other than mine on moodle. Or do I have to import all the accounts on moodle into lams?

Posted by sonia wang

6: Re: Re: Re: Re: Re: about the lams-moodle integration
In response to 5 02/11/08 11:39 PM
[ Reply | Forward ]
Did you try changing your userinfo URL?  LAMS won't create a new user for the person coming from Moodle if your userinfo URL is incorrect.  You need to replace '%root%' with '%username%'.

Your own Moodle user can access LAMS probably because it already has it's own account created in LAMS - <username> prefixed by 'mdl_'.  At some point the userinfo URL was probably correct when this account got created.

Incidentally, this also means that when creating different integrated server entries, the prefix value also needs to be unique.  I think this is now enforced in the database, but not sure.  This comes into play for example if the built in admin user in Moodle with username 'admin' tries to login to LAMS - if there are multiple Moodles with the same prefix, then they both get recognised as 'mdl_admin'.

Posted by Jun-Dir Liew

7: Re: Re: Re: Re: Re: Re: about the lams-moodle integration
In response to 6 02/12/08 12:25 AM
[ Reply | Forward ]
yeah, I've replaced '%root%' with '%username%'. and I still can't add a lams course on moodle with the account name "admin". anyway, thanks for your help, I've learned a lot =) you have a great day!

Posted by sonia wang

8: Re: Re: Re: Re: Re: Re: Re: about the lams-moodle integration
In response to 7 02/12/08 10:36 PM
[ Reply | Forward ]
Hi Sonia,

I created an account on your Moodle server and joined the class where you have the Test2 lesson, but as you can see in the attached picture, you can't access LAMS as you don't get the [Open Learner] button.

I think that could probably be because this lesson is *not* within a course. Can you add a LAMS 2 activity within a course and see if that works?

Thanks,

Ernie

Posted by Ernie Ghiglione

Attachments:
9: Re: Re: Re: Re: Re: Re: Re: Re: about the lams-moodle integration
In response to 8 02/13/08 04:37 AM
[ Reply | Forward ]
it works now, thank you!! so does it mean that I have to create a lams lesson only in a "course"?

Posted by sonia wang

10: Re: Re: Re: Re: Re: Re: Re: Re: Re: about the lams-moodle integration
In response to 9 02/13/08 05:06 AM
[ Reply | Forward ]
> so does it mean that I have to create a lams lesson only in a "course"?


Indeed.

You would need to create LAMS lessons within Moodle courses. Usually in Moodle the main page is for announcements or list the courses.

Thanks,

Ernie

Posted by Ernie Ghiglione

11: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: about the lams-moodle integration
In response to 10 02/13/08 07:36 AM
[ Reply | Forward ]
I got it, thank you sooooo much for helping me out. you have a nice day. =)

Posted by sonia wang

Reply to first post on this page
Back to Problems Installing LAMS