Take a look at the CAS and Shibboleth modules which are now in 1.5 DEV. Both are reading an "external" session or cookie, and overriding Moodle's internal auth.
General developer forum
Getting into Moodle from another system
This discussion has been locked so you can no longer reply to it.