With 1.4, I've been having problems getting automatic enrollments from an external database to work. I had a look at enrol/database/enrol.php and think I've found a couple of problems in the get_student_courses routine. (See attached doc. with my comments after JM).
Basically, if I changed 3 things, it worked.
1. loop through all courses to check against ext. db
2. changed way a parameter was passed to db query
3. added call to the enrol_student
Has anybody else got enrolment from an external database working? If so, then I'll be a bit confused.