Self-styled godman Rampal has been sentenced to life imprisonment in connection with two murder cases.