- Posts: 23
User Upload Authentication Error
- D N
- Topic Author
- Offline
- Junior Member
-
Less
More
13 years 5 months ago - 13 years 5 months ago #1
by D N
User Upload Authentication Error was created by D N
I have a Moodle 2.3 and Joomla 2.5 deployment with Joomdle 08 code.
When users are uploaded via Moodle (this is a requirement) using the core User Upload interface everything appears to go well. Users are added to Moodle / Joomla / Joomdle - all with activated and enabled all the way around.
Viewing users within the application(s) - AND - within the Database directly seems to confirm that all is well.
However, if the auth method is set to Joomdle then users cannot login anywhere. If I manually change it to 'manual' in the DB then they can login to Moodle immediately but not Joomla.
If I update a user by accessing their profile and make (1) change then save - they can access everywhere.
It is critical that users can be uploaded en masse through Moodle. Any ideas?
Thanks
-david
-EDIT - A quick update - I can see the user password in Moodle and I can tell it is correct by comparing the salt string to another user with same password. However, login still fails until Auth method is manually changed....
When users are uploaded via Moodle (this is a requirement) using the core User Upload interface everything appears to go well. Users are added to Moodle / Joomla / Joomdle - all with activated and enabled all the way around.
Viewing users within the application(s) - AND - within the Database directly seems to confirm that all is well.
However, if the auth method is set to Joomdle then users cannot login anywhere. If I manually change it to 'manual' in the DB then they can login to Moodle immediately but not Joomla.
If I update a user by accessing their profile and make (1) change then save - they can access everywhere.
It is critical that users can be uploaded en masse through Moodle. Any ideas?
Thanks
-david
-EDIT - A quick update - I can see the user password in Moodle and I can tell it is correct by comparing the salt string to another user with same password. However, login still fails until Auth method is manually changed....
Last edit: 13 years 5 months ago by D N.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7902
13 years 5 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic User Upload Authentication Error
I tested and did some debugging, and this cannot work currently, becasue when the user_created event is triggered in Moodle from the user upload code, the $user passed contains password already crypted, so it can't be passed in clear to Joomla to store it.
When a user is created normally, the $user received in the event has the plaintext password.
This is a Moodle issue, so you may want to open a new item on their tracker to inform them.
When a user is created normally, the $user received in the event has the plaintext password.
This is a Moodle issue, so you may want to open a new item on their tracker to inform them.
Please Log in or Create an account to join the conversation.
- D N
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 23
13 years 5 months ago - 13 years 4 months ago #3
by D N
Replied by D N on topic User Upload Authentication Error
Indeed, this would explain it.
Will post solutions soon....
Thanks
-dn
EDIT - So for anyone else attempting this - there was no simple fix. In the end, it was easiest to create a DB trigger on the Joomla user table and intercept the new user insert and re-write the password with a string that matches the default user password used when bulk uploading.
Then forcing a password change on first login. Not pretty - but it solved the problem in the short term....
Will post solutions soon....
Thanks
-dn
EDIT - So for anyone else attempting this - there was no simple fix. In the end, it was easiest to create a DB trigger on the Joomla user table and intercept the new user insert and re-write the password with a string that matches the default user password used when bulk uploading.
Then forcing a password change on first login. Not pretty - but it solved the problem in the short term....
Last edit: 13 years 4 months ago by D N.
Please Log in or Create an account to join the conversation.