A former principal who pleaded guilty to having sex with a 17-year-old male student was sentenced Tuesday.