A connector (10) includes a connector pin portion to be electrically connected to a case (R), a tubular portion (11) for accommodating the connector pin portion to face a mating member, and first and second bracket holding portions (21, 22) extending from an end part of the tubular portion (11) opposite to a side facing the connector pin portion and to be engaged with a bracket (30). Each of the first and second bracket holding portions (21, 22) includes insertion grooves (23, 24) through which the bracket (30) is insertable, and two bracket holding portions are provided on a lower surface (11a) of the tubular portion (11), which is the end part opposite to the side facing the connector pin portion.