I followed the Mahoodle pdf guide to the letter and seemed to have set up all the conditions for a successful SSO from Moodle (1.9.10) to Mahara (1.3.1). I got no error messages at any time. Both Moodle and Mahara are on the same domain on the same shared host.
Now when I am an authorized user and click on the link in Moodle to go to Mahara (link added from NetworkServer block), I go to Mahara, but am not logged in automatically. I can login manually to Mahara at this point, but the SSO feature is clearly not working.
Any suggestions as to what the problem might be?
(btw, I have followed thru the step-by-step guide twice now.)
Update: I now see that Moodle users are in fact automatically logged into Mahara, although this is not at all apparent to the user! When a user clicks thru from Moodle to Mahara, they get the front page with a login request. None of the users can log in with their Moodle user credentials. However, when I log in to Mahara as admin, I see that all the users have been logged into Mahara (they appear in the online users list), and their avatars and personal details have been successfully brought over from Moodle.
Do I need to bypass the front page?
G'day David, you said you've following the setup guide verbatim - so I'm hopefully stating the obvious. Double-check the following:
+curl and xmlrpc enabled as part of your php build
+SSO (Identity Provider) set to 'Publish' for Moodle
+'mnetlogintoremote' capability is granted for authenticated user role on Moodle
+'Networking' for your Mahara instance is enabled
+Certificates valid on both instances
I checked all but the first point in your list. I'm not sure how to see if curl and xmlrpc are part of my php build. Would my hosting service be able to tell me?
Good point, David. Users cannot in fact log in to Mahara. When they are brought over from Moodle, they get the standard login page (I'm using the default theme, btw). Their user names/ passwords do not work. However, when I log in to Mahara with a Mahara-made admin account, I see that the Moodle SSO-ers have been logged in, and that their personal data has been brought over.
I'll cross-post this query at mahara.org, per your suggestion.
I found the following solution on the mahara.org forum:
The problem is now resolved and was caused by the following
Around line 55 in the [Mahara] config file
// wwwroot - the web-visible path to your Mahara installation // Normally, this is automatically detected - if it doesn't work for you // then try specifying it here $cfg->wwwroot = 'http://www.yourdomain.com/';
Every download/install webapp I've found requires you to specify wwwroot - very odd it's optional. If it was to ask you during the setup process 'have we guessed your site root as xxxx correctly?' and save a yes or no flag somewhere that would be fair game. Especially something like mahara with so many files. We run it on a separate domain here btw, same server though.
Hi, I got the same problem...
I solved the problem with this
1. login to mahara admin as admin
2. goto users and find admin1 then edit admin1
3. change authentication method with XMLRPC of your moodle