Light mask (pass)

Would please somebody explain how to make a light mask or pass in blender 2.53. I need to extract the illumination effect from all the light sources in a pass