pub fn auth_failure(action: &str, reason: &str, source_ip: Option<IpAddr>)
Log an authentication failure.