castigation

(v) to subject to severe punishment, reproof, or criticism  
After too much rum, the young sailor broke a few rules and his captain castigated him in front of the entire crew.