At least where I live, universities used to run entrance exams. They didn't care about high school grades, or even if you'd ever been to high school: if you passed the entrance exam, you could enroll.