Forums | Mahara Community
Support
/
How can I SSO in AND out to/from the same Moodle
29 October 2010, 8:00
Mahara 1.3.2, Moodle 2 RC1
I have an Institution set up and xmlrpc SSO to Moodle. All works. Hurray - however, I want to go both ways. In Mahara 1.3, you have a dropdown for in OR out - you can't have both.
I tried to set up a second XMLRPC authority in the same Institution but it looks like it is being ignored. Mahara always finds the original (out) one and chokes because ssoin isn't set (" (auth/xmlrpc/lib.php:111) We don't accept SSO connections from Moodle" in the logs).
Am I missing something or can this not be done?
01 November 2010, 17:14
Howard,
Found it here:
https://bugs.launchpad.net/mahara/+bug/547564
Sorry about that. As you can see on that bug report, we were keen to remove that option because it was creating duplicate accounts for nearly everyone who tried it. But my guess is that we'll need to allow sso in both directions when usersuniquebyusername is on.
So I've filed a new bug report for this at https://bugs.launchpad.net/mahara/+bug/669667
In the meantime I'm afraid all you can do is hack the auth_instance_config table in your database to add a row manually. So for example, if after submitting the xmlrpc config page you have something like this:
instance | field | value
----------+-------------------+---------------------------
3 | wwwroot | http://moodle.example.com
3 | theyssoin | 1
3 | weautocreateusers | 1
Just add a new row with the values (3, 'wessoout', 1).
Adding a second xmlrpc authinstance won't work, I think you'll need to use the same authinstance for in and out.