I believe that is an established fact.
...became an Indonesian citizen...
As I understand it there is no documented proof of 0bama's Indonesian citizenship but foreign children can't be enrolled in Indonesian schools.
... and most likely obtained an Indonesian passport which allowed his travels to Pakistan and beyond.
He could have traveled to Pakistan on a U.S. passport.
Nobody using a US Passport would have been able to enter Pakistan during the time that Obama went there.