Anakin Skywalker betrayed the Gate Master (and opened the main door).“We are shutting down all navīeacons and signal lights, we have armed the older Padawans, and allīlast doors are sealed and code-locked.” His gaze swept the Masters. “Master Ti and Gate Master Jurokk will direct the Temple’s defense,” The Jedi placed the Temple into lockdown.There are a couple of scenes in the book that don't appear in the film: The film's official novelisation indicates that the Jedi Temple was lightly defended at the time of the attack, with the majority of active Jedi Knights and Masters off-world directing clone troopers in battle.