IFN-g production during active tuberculosis is regulated by mechanisms that involve IL-17, SLAM and CREB.