LogIt is a complex and customizable plugin for Bukkit, which authorizes players with their credentials and prevents certain events if they're not logged in.