by David Perry.
There is a database authentication module built in, but I've not tried using it personally:
http://docs.moodle.org/en/External_database_authentication
Otherwise, we have hacked the login code to detect if staff login from our staff intranet and sets up a moodle session.