BRIDGEPORT, Conn. (AP) The Justice Department has agreed to a tentative settlement of a lawsuit by a Connecticut FBI agent who alleged discrimination and retaliation by his bosses in the New Haven office after he complained about personnel decisions.

Federal court records show that lawyers for agent Kurt Siuzdak and the government reported to a judge Monday that the case was settled. Terms were not disclosed.

The lawsuit by the 21-year FBI veteran said he was subjected to a baseless investigation after complaining he was passed over for supervisory positions. The 2014 lawsuit also said leaders of the New Haven office were so dysfunctional that then-bureau Director James Comey apologized to Connecticut staff.

A prosecutor representing the Justice Department did not immediately return a message seeking comment Monday. Officials denied the allegations.