Connector for connecting a first component to a latching pin of a second component, said latching pin having a head, wherein the connector • has a base body with a receiving space for receiving the head, • a retaining spring is provided, which is held by the base body and has a relative position, which is referred to as a holding position, relative to the base body and which in this holding position has a projection protruding into the receiving space, wherein the projection in the holding position can be moved in a release direction and protrudes a little less into the receiving space than in the holding position after being moved from the holding position in the release direction, wherein a movement of the projection from the holding position in the release direction tensions the retaining spring, characterised in that • the base body can be moved along a locking direction relative to the retaining spring, if the retaining spring is in the holding position, wherein, when the base body is moved in the locking direction in such a manner, the retaining spring is transferred from the holding position into a relative position, which is referred to as the locking position, relative to the base body and • the base body has an inner contact point or an inner contact surface and the retaining spring has a mating surface, wherein in the locking position the inner contact point or the inner contact surface contacts the mating surface of the retaining spring or in the locking position the inner contact point or the inner contact surface contacts the mating surface of the retaining spring, if the projection in the locking position is moved in the release direction, wherein • a surface portion of the retaining spring, which faces the inside of the receiving space, passes over an edge into a flat surface portion, which extends vertically to the locking position and is designed so that it serves as a locating surface which can be brought into abutment with a locating surface of the base body in order to limit the movement of the retaining spring. • has a base body with a receiving space for receiving the head, • a retaining spring is provided, which is held by the base body and has a relative position, which is referred to as a holding position, relative to the base body and which in this holding position has a projection protruding into the receiving space, wherein the projection in the holding position can be moved in a release direction and protrudes a little less into the receiving space than in the holding position after being moved from the holding position in the release direction, wherein a movement of the projection from the holding position in the release direction tensions the retaining spring, characterised in that • the base body can be moved along a locking direction relative to the retaining spring, if the retaining spring is in the holding position, wherein, when the base body is moved in the locking direction in such a manner, the retaining spring is transferred from the holding position into a relative position, which is referred to as the locking position, relative to the base body and • the base body has an inner contact point or an inner contact surface and the retaining spring has a mating surface, wherein in the locking position the inner contact point or the inner contact surface contacts the mating surface of the retaining spring or in the locking position the inner contact point or the inner contact surface contacts the mating surface of the retaining spring, if the projection in the locking position is moved in the release direction, wherein • a surface portion of the retaining spring, which faces the inside of the receiving space, passes over an edge into a flat surface portion, which extends vertically to the locking position and is designed so that it serves as a locating surface which can be brought into abutment with a locating surface of the base body in order to limit the movement of the retaining spring.