Mabuhay!
I'm using Horde (http://www.horde.org) to implement our university's students web portal (http://my.msuiit.edu.ph) where students can access their grades, see the deans' lists, access their email, etc., and Moodle (http://moodle.com) for for our online learning environment for the undergraduate (and soon, the graduate level). I have PARTIALLY integrated this two by making them authenticate with the same LDAP server. Partial because the students still need to login to two different login screens when they want to access either of the two.
Anyone tried integrating this two? Meaning, a student needs to login ONLY once, and then both will be accessible. I have tried integrating a module into horde. You only need to add the following lines at the top of the page you want to protect,
if (($reason = IMP::authenticate(null, true)) !== true) {
header('Location: ' . Horde::applicationUrl(IMP::logoutUrl('login.php', $reason), true));
exit;
}
Can anyone point me where in moodle I should place these lines (a global auth function perhaps) so that it will use the same auth method as in horde?
Salamat.