Forums | Mahara Community

Mahara/Moodle integration /
SSO doesn' work


anonymous profile picture
Account deleted
Posts: 105

28 May 2009, 8:12

Hi guys,

I've got some problems getting my mahoodle installation running. I followed the tutorial @

https://eduforge.org/docman/view.php/176/3200/Mahoodle.pdf 

Everything seemed fine at first. I registered a user on Mahara and clicked on the Network link to my Moodle Installation. The user was already signed on.

Unfortunately this only worked for the first time. After signing out once SSO stops working.

Services are configure like this:

 

  1. Under SSO (Identity Provider), the 'Publish' option is checked.
  2. Under SSO (Service Provider), the 'Subscribe' option is checked.

And I get the following error code:

RPC auth/mnet/user_authorise:User with ID 2 attempted to call unauthorised method auth/mnet/auth.php/user_authorise on host http://www.nachtfieber.net/maharaERROR 7:7:User with ID 2 attempted to call unauthorised method auth/mnet/auth.php/user_authorise on host http://www.nachtfieber.net/mahara


 If I edit the SSO Services Page to:

  1. Under SSO (Identity Provider), the 'Subscribe' option is checked.
  2. Under SSO (Service Provider), the 'Publish' option is checked.

the site just freezes and the adress bar shows the following URL:

http://nachtfieber.net/moodle/auth/mnet/land.php?token=3159e49dd5f15044b9195f631b2a840e94ddf99d&idp=http://www.nachtfieber.net/mahara&wantsurl=

 Does somebody have an idea on how to solve this?

  

Regards

Alex

anonymous profile picture
Account deleted
Posts: 105

30 May 2009, 10:23

Hi,

unfortunately I haven't found a solution for my problem yet. After reading through the forums I found a post describing a problem quite similiar to mine ( http://mahara.org/interaction/forum/topic.php?id=232 )

 I already switched of 'Update user info on login' and checked the collations (everything set to utf8_unicode_ci). Someone else solved a similiar problem by updating his php version. Also did that by switching to php 5.x.  I reinstalled moodle and mahara a couple of times but the integration is still not working right. 

Unfortunately I'm not able to access the Apache error logs as I am on shared hosting.

Moodle v. moodle-1.9.5

Mahara v. mahara-1.1.3

 Please help!

Cry

Heinz Krettek's profile picture
Posts: 480

30 May 2009, 13:59

Hi Alex,

greetings from Black forest ;-) Do you speak Greman tongue?
feel free to contact me thru E-Mail. 

cheers Heinz

anonymous profile picture
Account deleted
Posts: 1643

30 May 2009, 22:20

Hi - make sure the services are configured in the manner in which the Mahoodle document says they need to be, then try SSO again, then look in the error logs for both your Moodle and Mahara - they may contain valuable information to help solve the problem.
anonymous profile picture
Account deleted
Posts: 105

01 June 2009, 3:35

Hi Nigel,

I've reconfigured the services in the manner described in the Mahoodle document.

If I click on the Network link to my Mahara installation Mahara says:

Sorry, could not log you in :(

Sorry, we could not log you into Mahara at this time. Please try again shortly, and if the problem persists, contact your administrator
 
I've reinstalled both applications twice today. No problems with keys or anything but it's still not working properly! Unfortunately I can't access the Apache error logs :(

 

anonymous profile picture
Account deleted
Posts: 105

01 June 2009, 6:31

Replying to myself again ;)

 

Fourth reinstallation: This time I used one db for mahara and moodle as I thought the error ocurred due to different collations (by the way: mahara doesn't force the user to use utf8 when installing; this is not good :( )

I also registered a subdomain http://mahoodle.nachtfieber.net because I assumed that problems might occur due to different host urls (though the ssl keys were both displayed properly).

This time I get a completely different error. When clicking on the network link in moodle, mahara says:

Mahara: Invalid Parameter

A required parameter is missing or malformed

We don't have a record for any host at http://mahoodle.nachtfieber.net/moodle/

 

I contacted my provider and asked them for the apache error logs. I will post the logs for the last two hours:

-----------------
[Mon Jun 1 10:05:02 2009] [error] [WAR] 5a (api/xmlrpc/dispatcher.php:188) This certificate claims to be for http://nachtfieber.net/moodle, but you are trying to use it for http://www.nachtfieber.net/moodle.
[Mon Jun 1 10:06:26 2009] [error] * Client->send("http://nachtfieber.net/moodle") at /home2/www/einsweb/_md/nachtfieber.net/mahara/auth/xmlrpc/lib.php:117
[Mon Jun 1 10:06:26 2009] [error] * AuthXmlrpc->request_user_authorise("002f30a482c63a5dc3a365cbd448fce26e15ca1a", "http://nachtfieber.net/moodle") at /home2/www/einsweb/_md/nachtfieber.net/mahara/auth/xmlrpc/land.php:95
[Mon Jun 1 10:15:25 2009] [error] * Client->send("http://nachtfieber.net/moodle") at /home2/www/einsweb/_md/nachtfieber.net/mahara/auth/xmlrpc/lib.php:117
[Mon Jun 1 10:15:25 2009] [error] * AuthXmlrpc->request_user_authorise("69a6948a4c00287cf91ddf027fb26c3bf5895341", "http://nachtfieber.net/moodle") at /home2/www/einsweb/_md/nachtfieber.net/mahara/auth/xmlrpc/land.php:95
[Mon Jun 1 10:15:48 2009] [error] * Client->send("http://nachtfieber.net/moodle") at /home2/www/einsweb/_md/nachtfieber.net/mahara/auth/xmlrpc/lib.php:117
[Mon Jun 1 10:15:48 2009] [error] * AuthXmlrpc->request_user_authorise("4f8941af9881116ac802774c8a9ba9da54acc678", "http://nachtfieber.net/moodle") at /home2/www/einsweb/_md/nachtfieber.net/mahara/auth/xmlrpc/land.php:95
[Mon Jun 1 10:26:51 2009] [error] * Client->send("http://nachtfieber.net/moodle") at /home2/www/einsweb/_md/nachtfieber.net/mahara/auth/xmlrpc/lib.php:117
[Mon Jun 1 10:26:51 2009] [error] * AuthXmlrpc->request_user_authorise("3a1f79a0092ae9b83a757312acc5dcee041434e6", "http://nachtfieber.net/moodle") at /home2/www/einsweb/_md/nachtfieber.net/mahara/auth/xmlrpc/land.php:95
[Mon Jun 1 10:29:06 2009] [error] * Client->send("http://nachtfieber.net/moodle") at /home2/www/einsweb/_md/nachtfieber.net/mahara/auth/xmlrpc/lib.php:117
[Mon Jun 1 10:29:06 2009] [error] * AuthXmlrpc->request_user_authorise("6afe6c26f46d8b8596bed765f48c609f454c93bc", "http://nachtfieber.net/moodle") at /home2/www/einsweb/_md/nachtfieber.net/mahara/auth/xmlrpc/land.php:95
[Mon Jun 1 10:33:08 2009] [error] * Client->send("http://nachtfieber.net/moodle") at /home2/www/einsweb/_md/nachtfieber.net/mahara/auth/xmlrpc/lib.php:117
[Mon Jun 1 10:33:08 2009] [error] * AuthXmlrpc->request_user_authorise("22b1d2dea089d10063e47f33a419f0088b44ca69", "http://nachtfieber.net/moodle") at /home2/www/einsweb/_md/nachtfieber.net/mahara/auth/xmlrpc/land.php:95
[Mon Jun 1 11:57:10 2009] [error] [WAR] 9a (api/xmlrpc/lib.php:644) We don't have a record for your webserver (http://mahoodle.nachtfieber.net/moodle/) in our database
[Mon Jun 1 11:57:10 2009] [error] * get_peer("http://mahoodle.nachtfieber.net/moodle/") at /home2/www/einsweb/_md/nachtfieber.net/mahoodle/mahara/api/xmlrpc/lib.php:659
[Mon Jun 1 11:57:32 2009] [error] [WAR] 43 (api/xmlrpc/lib.php:644) We don't have a record for your webserver (http://mahoodle.nachtfieber.net/moodle/) in our database

[Mon Jun 1 11:57:32 2009] [error] * get_peer("http://mahoodle.nachtfieber.net/moodle/") at /home2/www/einsweb/_md/nachtfieber.net/mahoodle/mahara/api/xmlrpc/lib.php:659

 

 Does that help?

 

Regards and thanks 

Alex

anonymous profile picture
Account deleted
Posts: 1643

01 June 2009, 16:55

Ok, that error log is most helpful.

It seems your original problem is that your moodle site is accessible at both nachtfieber.net and www.nachtfieber.net. You used one of those when you first visited Moodle's networking page, but you put the other one into the Mahara XMLRPC config. That's what the 'certificate claims to be for X but you are trying to use it for Y' means.

Now you've reinstalled things, it looks like you've missed doing the configuration on the Mahara side or something. Or maybe you've set up the XMLRPC with the wrong Moodle wwwroot on the Mahara side.

anonymous profile picture
Account deleted
Posts: 105

03 June 2009, 3:00

Hi Nigel,

thanks for your support! 

Reinstalled it again.... this time I triple checked setting the URLs right! Resulting in a different error:

 

[WAR] 68 (api/xmlrpc/client.php:87) Curl error: 52:Empty reply from server
[X]
Call stack (most recent first):

 

Sorry, could not log you in :(

Sorry, we could not log you into Mahara at this time. Please try again shortly, and if the problem persists, contact your administrator

 

Finally found a setting to display the error codes in my browser. XMLRPC config is definetly right!

 

I guess I'm a helpless case :(

anonymous profile picture
Account deleted
Posts: 1643

03 June 2009, 17:34

Empty reply from server - Heinz has seen this before, we tried for ages to debug this and never got anywhere.. are you on shared hosting? In the end, Heinz had to get a VPS to solve the issue.
anonymous profile picture
Account deleted
Posts: 105

15 June 2009, 8:05

Yes, I'm on shared hosting. It's still not working so that I had to switch servers.

With my new server it's working. Let me know if I can be of any help, e.g. providing further information for fixing this bug.

24 results