A holder of obligations or coupons attached to them issued under the provisions of this chapter, and a trustee under any trust agreement or resolution authorizing the issuance of the obligations, except as restricted by a trust agreement or resolution, either at law or in equity, may enforce all rights granted hereunder or under the trust agreement or resolution, or under any other contract executed by the corporation under this chapter, and may enforce and compel the performance of all duties required by this chapter or by the trust agreement or resolution to be performed by the corporation or by any officer of it.