Pakistani national sentenced to life in prison for terror links