BRIDGEPORT — Settlement negotiations are winding down in the civil case of a former Fairfield police detective who claims he was forced to resign after he pleaded guilty to stealing thousands of dollars in heroin and OxyContin pills from the Fairfield Police Department.

Stephen Rilling, the son of Norwalk’s Mayor Harry Rilling, claims in his lawsuit against the town of Fairfield that his superiors in the Police Department ignored his pleas to keep him away from drug investigations and later refused to allow him to retire on a disability — being addicted to powerful pain killers.

Lawyers for the town and Rilling have been ordered to present their settlement positions before Superior Court Judge Richard Arnold on March 5. If no settlement is reached, the trial is scheduled to begin March 9.

Michael Rose, who represents the town, declined comment. Rilling’s lawyer, Eric Brown, did not return calls for comment.

Rilling, a 19-year veteran of the Fairfield Police Department, agreed to a plea bargain in March 2018 and pleaded guilty to two counts of misdemeanor possession of narcotics and three counts of fourth-degree computer crime. He was sentenced to a suspended 5-year sentence with three years’ probation.

Police said between June 2016 and February 2017, Rilling signed out more than 225 folds of heroin, more than 800 OxyContin pills and a few packets of cocaine from the department’s evidence room on the false pretext of needing to have the drugs tested.

Police said he “ultimately converted these narcotics for his personal use and consumed them as a result of an addiction to said drugs.”

Police said the drugs originated from a number of raids, undercover operations and from the homes of people who overdosed on the drugs.

In one case between Feb. 20, and May 1, 2014, police said, Rilling conducted an investigation that resulted in the seizure of 58 folds of heroin. Police said the target of the investigation pleaded guilty in October 2016 and on Dec. 31, 2016, Rilling signed out all 58 folds from the evidence room on the pretense that a follow-up investigation was being done.

In his lawsuit, Rilling claims that in 2009 he was injured in a car accident while on the job and was prescribed opioid medication which led him to be addicted to opioids. He states in the suit that in 2013 he told his superiors in the department he was addicted to opioids and admitted himself to a drug treatment facility.

When he returned to work, he claims that despite his protests, he was ordered to resume investigating narcotics crimes. This led him to relapse and begin using opioids again and taking opioids and heroin from the Police Department’s evidence locker, the suit states.

“The plaintiff was forced to resign from employment with the defendant but if his disability had been accommodated, he could have continued in his position as a Fairfield police officer without relapse or resignation,” the lawsuit states.