Dark matter halos and stellar kinematics of elliptical galaxies