Dundy County sheriff battles for job despite certification failure and misconduct allegations