As Prince Andrew reflects on his threadbare reputation, he can seek inspiration from a fellow military man once nearly as reviled as he is today.