# Connect Gibbon to Moodle

**URL:** <https://ask.gibbonedu.org/t/connect-gibbon-to-moodle/15224>\
**Category:** General\
**Created:** [March 24, 2025, 8:04am UTC](https://ask.gibbonedu.org/t/connect-gibbon-to-moodle/15224 "2025-03-24T08:04:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elkiyingi](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/e/3e96dc/32.png) [@elkiyingi](https://ask.gibbonedu.org/u/elkiyingi)\
**Post date:** [March 24, 2025, 8:04am UTC](https://ask.gibbonedu.org/t/connect-gibbon-to-moodle/15224/1 "2025-03-24T08:04:21Z")

</div>

Hello,

I am trying to sync users (primarily) and courses between gibbon and moodle, gibbon being the source. I have configured the external database and the connection seems to be working. I am having trouble syncing the users though.

This is a log from the server sync tool in moodle;

“Execute scheduled task: Synchronise users task (auth\_db\task\sync\_users)  
… started 06:40:01. Current memory use 26.9 MB.  
User entries to add: 3  
Error inserting user Kiyingi - user with this username was already created through ‘manual’ plugin.  
Error inserting user lMoodle  
Error inserting user tMoodle  
… used 7 dbqueries  
… used 0.0059928894042969 seconds  
Scheduled task complete: Synchronise users task (auth\_db\task\sync\_users)”

I understand the error with the first user but not the other two. What could be keeping the users from syncing? Any help?

---

<div class="post-metadata">

**Author:** ![elkiyingi](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/e/3e96dc/32.png) [@elkiyingi](https://ask.gibbonedu.org/u/elkiyingi)\
**Post date:** [March 25, 2025, 11:04am UTC](https://ask.gibbonedu.org/t/connect-gibbon-to-moodle/15224/2 "2025-03-25T11:04:39Z")

</div>

I figured out what the problem was. My usernames in Gibbon had uppercase letters which are not accepted in Moodle. Users are now successfully being added to moodle though they receive a new password, which kinda defeats the single sign on goal I had.

To make this work I had to use internal password management because Moodle does not support sha256 which gibbon appears to be based on. Is there a work around for this? It’s the only piece missing for full SSO I think.

---

<div class="post-metadata">

**Author:** ![sandra](https://ask.gibbonedu.org/user_avatar/ask.gibbonedu.org/sandra/32/5_2.png) [@sandra](https://ask.gibbonedu.org/u/sandra)\
**Post date:** [March 26, 2025, 1:18am UTC](https://ask.gibbonedu.org/t/connect-gibbon-to-moodle/15224/3 "2025-03-26T01:18:50Z")

</div>

Hi @elkiyingi Thanks for sharing your solution, which could certainly help other users who encounter the same problem.

It sounds like Moodle may have changed their password handling, as I believe they supported sha2 in the past. Gibbon supports Google and/or Microsoft SSO as well, if this helps, these can be found in System Admin \> Third Party Settings.
