Army Sgt. Bowe Bergdahl pleaded guilty Monday at Fort Bragg, North Carolina, to charges he endangered comrades by walking away from his post in Afghanistan in 2009 -- the court case wrapping up three years after a stunning Rose Garden spectacle in which former President Barack Obama, flanked by Bergdahl's parents, triumphantly announced the soldier's release from captivity.
Bergdahl's lawyer said the prosecution and defense have not agreed to a stipulation of facts in the case, which is an indication that they did not reach a deal to limit his punishment, The Associated Press reported.
The misbehavior charge carries a maximum penalty of life in prison, while the desertion charge is punishable by up to five years.
Bergdahl, 31, told the judge that he now understands what he did caused others to search for him.
- Bergdahl Chooses to Have Trial Heard by Judge and Not Jury
- Prosecutors Drop Plans to Use Statements Bergdahl Made in Afghanistan
- Navy Seal Testifies About Wound During Bowe Bergdahl Search
Bergdahl was released in May 2014 after a highly criticized deal in which five Taliban terrorists were set free. At the time, Obama administration officials said Bergdahl had "served with honor and distinction."
The U.S. Army said Bergdahl asked to enter his plea before the military judge, which brings the saga closer to an end eight years after Bergdahl's disappearance in Afghanistan set off search missions by scores of his fellow service members.
President Obama was criticized by Republicans for the 2014 Taliban prisoner swap that brought Bergdahl home, while President Donald Trump harshly criticized Bergdahl on the campaign trail.
Bergdahl's punishment won't be known until after the judge, Army Col. Jeffery R. Nance, holds the sentencing hearing that's expected to start on Oct. 23. Bergdahl, who's from Hailey, Idaho, previously chose to have his case heard by a judge alone, rather than a jury.
Serious wounds to service members who searched for Bergdahl are expected to play a role in his sentencing. While guilty pleas would allow him to avoid a trial, he'd still face a sentencing hearing in late October. Bergdahl's five years of captivity by the Taliban and its allies also will likely play a role in what punishment he receives.
At one point during his captivity, Bergdahl converted to Islam, fraternized openly with his captors and declared himself a "mujahid," or warrior for Islam, Fox News reported in 2014, citing secret documents prepared on the basis of a purported eyewitness account.
The reports indicate that Bergdahl's relations with his Haqqani captors morphed over time, from periods of hostility, where he was treated very much like a hostage, to periods where, as one source told Fox News, "he became much more of an accepted fellow" than is popularly understood. He even reportedly was allowed to carry a gun at times.
The documents show that Bergdahl at one point escaped his captors for five days and was kept, upon his re-capture, in a metal cage, like an animal. In addition, the reports detail discussions of prisoner swaps and other attempts at a negotiated resolution to the case that appear to have commenced as early as the fall of 2009.
Legal scholars have said that several pretrial rulings against the defense have given prosecutors leverage to pursue stiff punishment against Bergdahl, The Associated Press reported.
Perhaps most significant was the judge's decision in June to allow evidence of serious wounds to service members who searched for Bergdahl at the sentencing phase. The judge ruled that a Navy SEAL and an Army National Guard sergeant wouldn't have wound up in separate firefights that left them wounded if they hadn't been searching for Bergdahl.
The defense also was rebuffed in an effort to prove President Donald Trump had unfairly swayed the case with scathing criticism of Bergdahl, including suggestions of harsh punishment. The judge wrote in a February ruling that Trump's campaign-trail comments were "disturbing and disappointing" but did not constitute unlawful command influence by the soon-to-be commander in chief.
"We may as well go back to kangaroo courts and lynch mobs that got what they wanted," Bergdahl said to a British filmmaker in 2016 when asked about trials, according to an interview obtained by ABC News. "The people who want to hang me, you're never going to convince those people."
Defense attorneys have acknowledged that Bergdahl walked off his base without authorization. Bergdahl himself told a general during a preliminary investigation that he left intending to cause alarm and draw attention to what he saw as problems with his unit. He was soon captured.
But the defense team has argued that Bergdahl can't be held responsible for a long chain of events that included many decisions by others on how to conduct the searches.
Bergdahl has been assigned to desk duty at a Texas Army base while his case unfolds.
-- The Associated Press contributed to this report.