You can begin with exploring the standard authentication plugins in the docs at http://docs.moodle.org/26/en/Authentication. hth
Database
login to moodle with external username and password
This discussion has been locked so you can no longer reply to it.