Take a holomorphic Lie algebroid (V,I¨) on a compact connected Riemann surface X such that the anchor map I¨ is not surjective. Let P be a parabolic subgroup of a complex reductive affine algebraic group G and EPubsetEG a holomorphic reduction of structure group, to P, of a holomorphic principal G--bundle EG on X. We prove that EP admits a holomorphic Lie algebroid connection for (V,I¨) if the reduction EP is infinitesimally rigid. If EP is the Harder--Narasimhan reduction of EG, then it is shown that EP admits a holomorphic Lie algebroid connection for (V,I¨). In particular, for any point x0∈X, the Harder--Narasimhan reduction EP admits a logarithmic connection that is nonsingular on the complement Xetminus{x0}.