Installed OK, but cant login to Joomla using a Moodle user?

  • Alex Watterson
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 5 months ago - 13 years 5 months ago #1 by Alex Watterson
Hi,

Apologies if this is a blinding obvious question!!!

I've installed Joomdle and it works fine i.e. the system check gets all ticks. I then thought i could just log into Joomla using one of our 3,500 Moodle users, but this doesnt seem to happen automatically?

I can search users and filter Moodle users and see them (sometime get a "XML-RPC Error (0): Error reading from database" error?) but surely I don't have to this for every new user?!?


P.S. I went to make a donation, however it stated "You cannot use this credit card for this transaction", have used card for many other transactions including international?

Thanks,

Alex
Last edit: 13 years 5 months ago by Alex Watterson.

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

  • Alex Watterson
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 5 months ago #2 by Alex Watterson
Any ideas? Or does Joomdle not support this?

Thanks,

Alex

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

More
13 years 5 months ago #3 by Chris
You should be able to login using your moodle id and pw. This assumes that everything is set up correctly. The moodle pw will Not be moved across to joomla as it is encrypted and thus not readable. Instead logging in from the Joomla side will be managed using SSO.

If you are getting XMLRPC errors, this suggest you have a problem somewhere.

Do you have green ticks besides all items in the system health check?

What version of Joomla, Moodle and Joomdle are you running?

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

  • Alex Watterson
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 4 months ago #4 by Alex Watterson
Hi,

Thanks for getting back to me. Yep all green ticks on the health check.

I'm actually going to try our own install of Joomla instead of the hosted one, ill see if it works there and if not maybe shout for help again :-)

Thanks,

Alex

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

More
13 years 4 months ago - 13 years 4 months ago #5 by Antonio Durán
I am late to the topic, but from what I read, you have not migrated your Moodle users.

You won't be able to log in with yout Moodle users through Joomla, until you migrate them.
This process will set a new password for every user: as Chris says, we cannot read Moodle password to store it in Joomla, so we need to issue new passwors, that are sent by email.

Doc is here:
www.joomdle.com/wiki/Migrating_existing_...Joomla_installations
Last edit: 13 years 4 months ago by Antonio Durán.

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

  • Alex Watterson
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 4 months ago #6 by Alex Watterson
Hi Antonio,

Thanks for the input.

Before installing I assumed Joomdle would just allow a user to enter their pw in Joomla, and its easy to MD5 hash that and compare with Moodle i.e. you don't need to decrypt the Moodle pw but merely MD5 hash whatever the user puts in and compare that with the encrypted Moodle pw?

So from reading the article am I correct in assuming that it is not possible for my Moodle users to login to Joomla without being emailed a new password?

Thanks,

Alex

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

  • Alex Watterson
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 4 months ago - 13 years 4 months ago #7 by Alex Watterson
This seems to work!

I used this:

md5.my-addr.com/md5_salted_hash-md5_salt...h_generator_tool.php

and added the salt in from the config.php to the end of the password and created the Moodle password exactly as appears in mdl_user table in Moodle! :)
Last edit: 13 years 4 months ago by Alex Watterson. Reason: Update

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

  • Alex Watterson
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 4 months ago #8 by Alex Watterson
OK, installed Joomla and Joomdle locally. System check all fine (see attached ).

If I look at users I keep getting:
XML-RPC Error (0): Error reading from database

its somewhat intermitent i.e. will sometime let me browse users and then when i search for a user it will say this.

Sorry, not much to go on! Any obvious ideas? :)

Thanks

Info as follows:
Joomla:

PHP Built On Windows NT MOODLESERVER 6.1 build 7601 (Windows Server 2008 R2 Enterprise Edition Service Pack 1) i586
Database Version 5.5.15
Database Collation utf8_general_ci
PHP Version 5.3.8
Web Server Microsoft-IIS/7.5
WebServer to PHP Interface cgi-fcgi
Joomla! Version Joomla! 2.5.8 Stable [ Ember ] 8-November-2012 14:00 GMT
Joomla! Platform Version Joomla Platform 11.4.0 Stable [ Brian Kernighan ] 03-Jan-2012 00:00 GMT
User Agent Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11

Moodle:
Moodle 2.1.1+ (Build: 20110811)

You are using Joomdle 0.82

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

More
13 years 4 months ago #9 by Antonio Durán
. you don't need to decrypt the Moodle pw but merely MD5 hash whatever the user puts in and compare that with the encrypted Moodle pw?

That could work, but it is not how Joomdle works: Joomdle considers Joomla as the master, and all auth is done against it. This means we need to store passswords in Joomla, and not Moodle.

As for this:
XML-RPC Error (0): Error reading from database

Most times I have seen this was cause by some bad data: usernames with special chars, or things like that.

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