You can buy a Langtang trek permit in Kathmandu at the Nepal Tourism Board Office on Pradarshani Marg.