N.Y. Rural Electric Cooperative Law § 27
(a) Notwithstanding the failure of a cooperative to provide indemnification, and despite any contrary resolution of the board or of the members in the specific case under section twenty-six of this article, indemnification shall be awarded by a court to the extent authorized under section twenty-five of this article, and subdivision (a) of section twenty-six of this article. Application therefor may be made, in every case, either: