After searching for a while I finally found a detailed solution to this general Legendre equation. So, I guess this question is answered! The source for the solution is this: http://www.physicspages.com/2011/03/22/associated-legendre-functions/