Const. Albert Michelin in 2004.

Const. Albert Michelin, pictured here in 2004, is a 23-year veteran of the RCMP. (CBC)

A former New Brunswick Mountie has pleaded guilty to possession of cocaine for the purpose of trafficking.

Albert Michelin, 50, entered the plea in Moncton provincial court on Tuesday, while wearing handcuffs.

A second count of possession for the purpose of trafficking and one count of trafficking were dropped.

Michelin, a 23-year veteran of the RCMP, will remain in custody until his sentencing on Aug. 20, at 1:30 p.m.

He asked Judge Anne Dugas-Horsman if he would have a chance to address the court at his sentencing. Dugas-Horsman replied yes.

Michelin thanked the judge.

He was arrested on Nov. 29 following an 11-month investigation by the RCMP's federal operations unit in Nova Scotia and has remained in custody.

Michelin was suspended with pay at the time of his arrest due to unrelated code of conduct investigations, but has since resigned.

Michelin was last stationed as a constable in Tobique First Nation in the northwestern part of the province, near the Maine border. He previously served in Labrador for 18 years.