Forums | Mahara Community

Mahara/Moodle integration /
Mahara not logging on from Moodle


anonymous profile picture
Account deleted
Posts: 8

22 July 2009, 14:39

Hi

My previous forum post seems to be corrupt - I cannot get in to it at any rate. However, I seem to have solved that problem by another clean install of each package.

However, I now have 90% of SSO working -  but it isn't actually logging a user in. It is creating them an account, but they cannot log infrom Moodle, and when they try and log in via mahara it says

 

You have not provided the correct credentials to log in. Please check your username and password are correct.

Welcome to Mahara

Mahara is a fully featured electronic portfolio, weblog, resume builder and social networking system, connecting users and creating online communities. Mahara provides you with the tools to set up a personal learning and development environment.

For more information you can read About Mahara or alternatively please feel free to Contact Us.

 

That means that my moodle server is creating accounts on my mahara server, but not actually allowing people to log into the mahara server. Maybe I am not actually 90% there at all!! :)

 This is on a shared hosting package (I know - not good), byt everything seems to be fine. 

http://www.ianwatts.org/moodle

http://www.ianwatts.org/mahara

moodle username iwatts - password=sydney (admin account)

Mahara  username admin - password = sydney3519 (admin account)

 Hope someone can help

Cheers

 

Ian

 

anonymous profile picture
Account deleted
Posts: 228

22 July 2009, 23:52

Hi Ian,

I can't get to your other post right now, but I meant 'mnet_host', not 'mnet_peer'.

Anyway about this message:  your users will certainly need to be able to log in via Moodle, rather than directly into Mahara.

Can you look at the webserver logs right at the exact minute that you click the jump url from Moodle to Mahara and paste exactly those few lines? I think the reason I can't get into your last post here might be the length of the log you pasted, so it would be really helpful if you could narrow it down to a few lines only :)

 

anonymous profile picture
Account deleted
Posts: 8

23 July 2009, 1:51

Hi Penny

These are the logs from when I have just tried to access mahara from moodle

 

90.210.226.154 - - [23/Jul/2009:01:43:56 -0500] "GET /moodle/login/index.php HTTP/1.1" 200 8729 "http://www.ianwatts.org/moodle/" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.11) Gecko/2009060214 Firefox/3.0.11"
90.210.226.154 - - [23/Jul/2009:01:44:05 -0500] "POST /moodle/login/index.php HTTP/1.1" 303 190 "http://www.ianwatts.org/moodle/login/index.php" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.11) Gecko/2009060214 Firefox/3.0.11"
90.210.226.154 - - [23/Jul/2009:01:44:06 -0500] "GET /moodle/ HTTP/1.1" 200 10875 "http://www.ianwatts.org/moodle/login/index.php" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.11) Gecko/2009060214 Firefox/3.0.11"
90.210.226.154 - - [23/Jul/2009:01:44:07 -0500] "GET /moodle/calendar/overlib.cfg.php HTTP/1.1" 200 233 "http://www.ianwatts.org/moodle/" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.11) Gecko/2009060214 Firefox/3.0.11"
90.210.226.154 - - [23/Jul/2009:01:44:12 -0500] "GET /moodle/auth/mnet/jump.php?hostid=3 HTTP/1.1" 303 422 "http://www.ianwatts.org/moodle/" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.11) Gecko/2009060214 Firefox/3.0.11"
67.212.189.163 - - [23/Jul/2009:01:44:13 -0500] "POST /moodle/mnet/xmlrpc/server.php HTTP/1.1" 200 7247 "-" "Mahara"
67.212.189.163 - - [23/Jul/2009:01:44:14 -0500] "POST /moodle/mnet/xmlrpc/server.php HTTP/1.1" 200 3291 "-" "Mahara"
90.210.226.154 - - [23/Jul/2009:01:44:13 -0500] "GET /mahara/auth/xmlrpc/land.php?token=4fc7f9fc21d1430e2f637ccfbbd4b506412876ab&idp=http://www.ianwatts.org/moodle&wantsurl= HTTP/1.1" 303 - "http://www.ianwatts.org/moodle/" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.11) Gecko/2009060214 Firefox/3.0.11"
90.210.226.154 - - [23/Jul/2009:01:44:15 -0500] "GET /mahara/ HTTP/1.1" 200 7335 "http://www.ianwatts.org/moodle/" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.11) Gecko/2009060214 Firefox/3.0.11"
90.210.226.154 - - [23/Jul/2009:01:44:54 -0500] "POST /mahara/ HTTP/1.1" 200 7402 "http://www.ianwatts.org/mahara/" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.11) Gecko/2009060214 Firefox/3.0.11"
90.210.226.154 - - [23/Jul/2009:01:45:10 -0500] "POST /mahara/ HTTP/1.1" 200 7901 "http://www.ianwatts.org/mahara/" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.11) Gecko/2009060214 Firefox/3.0.11"
90.210.226.154 - - [23/Jul/2009:01:45:49 -0500] "GET /cpanel HTTP/1.1" 301 - "-" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.11) Gecko/2009060214 Firefox/3.0.11"

Cheers

 

Ian

anonymous profile picture
Account deleted
Posts: 228

23 July 2009, 2:52

Hi Ian,

Those are the logs from the access log - do you also have access to the error log?

Cheers

Penny

anonymous profile picture
Account deleted
Posts: 1643

23 July 2009, 6:27

Hi - posting what I posted just now in the other thread (which I fixed the display of btw) - what happens if you turn off 'update user info on login' ?
anonymous profile picture
Account deleted
Posts: 8

23 July 2009, 13:36

Hi

I cleared the error logs out and redid the process, with a new standard account in Moodle and then trying to SSO into Mahara. It didn't work, and when I checked the error logs, there were none, so certainly nothing is reporting as an error.

I only have the option for two lots of logs in CPANEL - Raw access logs and error logs. Not sure if this is a limitation of shared hosting.

I tried turning off "update user info on login" and then repeated the process - i.e. creating a new user in moodle, and then logging in as that user into moodle. When I click on Mahara in network servers it takes me to my mahara's log in page, but doesn't log it in. However, when I log into mahara as admin, it has created that user - it just will not log them in.

I am stumped at this point. My own technical skills do not let me get much further. That is why I have given you the admin unames and passwords to my apps (they are only test ones!! :) Maybe you can spot something I have done wrong.

 Cheers

 

Ian

anonymous profile picture
Account deleted
Posts: 228

23 July 2009, 23:54

Hi Ian,

I'm sorry you're having such trouble :(  I guess it sounds like you've found a bug with the moodle integration code that affects shared hosting.  It would be good to track it down, but without access to the code and the server that's really hard.

I logged into Moodle and Mahara and tried a few things and everything looks fine, so I really don't know how to continue without actively debugging it, which is really hard to do without an ssh account on the server :(

anonymous profile picture
Account deleted
Posts: 8

24 July 2009, 3:00

Hi, and thanks for taking a look.

Not sure what SSH is - There is somewhere on Cpanel for my shared hosting to generate an SSH key for logging in - is that any use? As I say - this is now outside of my knowledge!

If not, thanks for the help anyway. Guess I'll have to develop my skills further and go beyond shared hosting!! :)

Cheers

Ian
8 results