This is nothing that a comprehensive registry of photographs and biometric data of all the people in Afghanistan, Pakistan and Iran can't solve.
Implementation should take relatively small number of years. I believe there are a number of American companies who would be willing to provide the expertise, for a reasonably-sized fortune.
After which, progress towards ending the war can begin in earnest, as we will finally know who we are negotiating with.
