N.Y. Not-for-Profit Corporation Law § 724
(a) Notwithstanding the failure of a corporation to provide indemnification, and despite any contrary resolution of the board or of the members in the specific case under section 723 (Payment of indemnification other than by court award), indemnification shall be awarded by a court to the extent authorized under section 722 (Authorization for indemnification of directors and officers), and paragraph (a) of section 723 (Payment of indemnification other than by court award). Application therefor shall be made on notice to the attorney general and may be made, in every case, either: