Quantcast
Channel: Authentication
Viewing all articles
Browse latest Browse all 8256

Moodle External Database Authentication With Salt Hashing

$
0
0
by Luis Oliveira.  

Hi, I'm setting up Moodle 3.0 to allow users from my CMS (developed using the framework CakePHP 2.6) to login into Moodle. The two databases are on the same server. I'm using the option "External Database" from Moodle, it seems to be the easiest solution to set up.

According to Moodle Docs the script /path/to/moodle/auth/db/cli/sync_users.php imports the users from the external database (CMS) to Moodle, this works perfectly, but the login into Moodle using the credentials (username and password) from the external database doesn't work.

I think the problem might be the "Format password" (I'm using SHA-1 hash) in "External Database" setup. Because in CakePHP there's password hashing (SHA1 using salt). When I set "Format password" to "Plain text" it works, but that's not what I want. There's some way to solve this?

Links:

https://docs.moodle.org/27/en/External_database_authentication

https://docs.moodle.org/30/en/Password_salting


Viewing all articles
Browse latest Browse all 8256

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>