Without being able to go off a better description, I'd check that security light first. Sounds like something has been wired in series with another light. Had this before with an outside security light. It was fed off the hall way switch and was in series with hall light. The outside light would only work when a lamp was present in hall light, then when the outside light like was on, the hall light lamp would be dimly lit!