Joomdle 1.0 Installation

Unable to connect Moodle to Joomla

  • HBAcademy
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 3 months ago #11 by HBAcademy
Replied by HBAcademy on topic Unable to connect Moodle to Joomla
I checked and confirmed that Redirect-less SSO is NOT enabled.

Please Log in or Create an account to join the conversation.

More
6 years 3 months ago #12 by Antonio Durán
Replied by Antonio Durán on topic Unable to connect Moodle to Joomla
Then everything seems fine... I can't tell you much more from here. If you want, you can send me access info and I can take a look (joomla and moodle admins, test user)
You can send to antonio at joomdle

Please Log in or Create an account to join the conversation.

  • HBAcademy
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 3 months ago #13 by HBAcademy
Replied by HBAcademy on topic Unable to connect Moodle to Joomla
I'm going to dig into the code and see if I can figure out what's going on. Just so I understand expected functionality, and make sure this isn't an issue where I'm missing how things are "supposed" to work:

* I login into the Joomla frontend on domain 1
* I visit Moodle on domain 2. I expect to already be logged in, but am not

Second expected scenario:

* I visit Moodle on domain 2
* I try to login with credentials from Joomla for a user account already confirmed as sync'd between the two. but I am not able to login.

One other thought --
Our Joomla site is running AdminTools, with the enhanced .htaccess builder in place. Do I perhaps need to whitelist a URL to ensure Moodle can reach Joomla? Or are there other settings you know of that need to be adjusted?

Please Log in or Create an account to join the conversation.

More
6 years 3 months ago #14 by Antonio Durán
Replied by Antonio Durán on topic Unable to connect Moodle to Joomla
Hi.

Check here for admin tools:
www.joomdle.com/forum/how-to-general/121...ues-with-admin-tools

I don't know if it will solve the issues, but you can add the IP anyway to fix system check.

> I try to login with credentials from Joomla for a user account already confirmed as sync'd between the two. but I am not able to login.

Check Joomdle config in Moodle to confirm redirect-less SSO is not enabled there either.

With system check all green, I cannot think of anything else that would make this scenario not working.

Both scenarios are correct.
If you want to debug, I would start with second one, as it simpler.

Please Log in or Create an account to join the conversation.

  • HBAcademy
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 1 month ago #15 by HBAcademy
Replied by HBAcademy on topic Unable to connect Moodle to Joomla
I've been digging into the code to isolate the issue. The problem is with the xmlrpc call. Specifically arround line 505 of controllers/ws.xmlrpc.php -- where xmlrpc_server_call_method() is called. Up until that point, when I log the variables, they look correct as far as I can see. But that function call fails. As a result, what gets returned on the Moodle side from the file_get_contents() request (I've tried with curl as well) is the site homepage, which isn't parseable.

I'm focusing on logging troubleshooting logging into Moodle with a user account that is synched between the two (three checkmarks in the Joomdle user screen).

One other issue I've run into. If you create a user with mixed casing in Joomla, it results in two user accounts in the Joomdle list -- the Joomla user with mixed casing, and the Moodle user with all lowercase. And there's no way to join the two. That seems like it could be a real issue, as it's not uncommon for people to create user accounts with mixed case usernames. How do you recommend dealing with that?

Please Log in or Create an account to join the conversation.

More
6 years 1 month ago #16 by Antonio Durán
Replied by Antonio Durán on topic Unable to connect Moodle to Joomla
Hi.

To avoid caps problem, you can use this plugin:
www.joomdle.com/download/category/27-plu...7:joomdle-user-check

It will show an error if you try to register with caps in username, as that is not allowed in Moodle.

Please Log in or Create an account to join the conversation.